paint.h
来自「一个由Mike Gashler完成的机器学习方面的includes neural」· C头文件 代码 · 共 43 行
H
43 行
// --------------------------------------------------------
// This demo file is dedicated to the Public Domain. See:
// http://creativecommons.org/licenses/publicdomain
// --------------------------------------------------------
#ifndef __PAINT_H__
#define __PAINT_H__
#include "Gui.h"
class PaintTool;
class GImage;
class GSupervisedLearner;
class PaintController : public ControllerBase
{
protected:
GImage* m_pImage;
GImage* m_pSelection;
public:
PaintController();
virtual ~PaintController();
GImage* GetCanvas() { return m_pImage; }
GImage* GetSelectionMask() { return m_pSelection; }
void RunModal();
void RedrawCanvas();
void CleanCanvas();
void SetCurrentTool(PaintTool* pTool);
void OnSelectTab(int i);
void OnOpenFile(const char* szFilename);
void ZoomIn();
void ZoomOut();
// todo: remove this method
void OnMaskFile(const char* szFilename);
};
#endif // __PAINT_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?