ReactOS  0.4.15-dev-5142-g967f5b9
GenericDrawTool Struct Referenceabstract
Inheritance diagram for GenericDrawTool:
Collaboration diagram for GenericDrawTool:

Public Member Functions

 GenericDrawTool (TOOLTYPE type)
 
virtual void draw (BOOL bLeftButton, LONG x, LONG y)=0
 
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
 
void OnMouseMove (BOOL bLeftButton, LONG x, LONG y)
 
void OnButtonUp (BOOL bLeftButton, LONG x, LONG y)
 
void OnCancelDraw ()
 
- Public Member Functions inherited from ToolBase
 ToolBase (TOOLTYPE tool)
 
virtual ~ToolBase ()
 
virtual void OnFinishDraw ()
 
void beginEvent ()
 
void endEvent ()
 
void reset ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ToolBase
static ToolBasecreateToolObject (TOOLTYPE type)
 
- Public Attributes inherited from ToolBase
TOOLTYPE m_tool
 
HDC m_hdc
 
COLORREF m_fg
 
COLORREF m_bg
 
- Static Public Attributes inherited from ToolBase
static INT pointSP = 0
 
static POINT pointStack [256] = { { 0 } }
 

Detailed Description

Definition at line 255 of file mouse.cpp.

Constructor & Destructor Documentation

◆ GenericDrawTool()

GenericDrawTool::GenericDrawTool ( TOOLTYPE  type)
inline

Definition at line 257 of file mouse.cpp.

257  : ToolBase(type)
258  {
259  }
ToolBase(TOOLTYPE tool)
Definition: toolsmodel.h:42
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545

Member Function Documentation

◆ draw()

virtual void GenericDrawTool::draw ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)
pure virtual

◆ OnButtonDown()

void GenericDrawTool::OnButtonDown ( BOOL  bLeftButton,
LONG  x,
LONG  y,
BOOL  bDoubleClick 
)
inlinevirtual

Reimplemented from ToolBase.

Definition at line 263 of file mouse.cpp.

264  {
266  draw(bLeftButton, x, y);
267  }
void CopyPrevious(void)
Definition: history.cpp:47
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
virtual void draw(BOOL bLeftButton, LONG x, LONG y)=0
ImageModel imageModel
Definition: main.cpp:32
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ OnButtonUp()

void GenericDrawTool::OnButtonUp ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)
inlinevirtual

Reimplemented from ToolBase.

Definition at line 274 of file mouse.cpp.

275  {
276  draw(bLeftButton, x, y);
277  }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
virtual void draw(BOOL bLeftButton, LONG x, LONG y)=0
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by OnCancelDraw().

◆ OnCancelDraw()

void GenericDrawTool::OnCancelDraw ( )
inlinevirtual

Reimplemented from ToolBase.

Definition at line 279 of file mouse.cpp.

280  {
281  OnButtonUp(FALSE, 0, 0);
284  }
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
virtual void OnCancelDraw()
Definition: mouse.cpp:85
ImageModel imageModel
Definition: main.cpp:32
void OnButtonUp(BOOL bLeftButton, LONG x, LONG y)
Definition: mouse.cpp:274
void Undo(BOOL bClearRedo=FALSE)
Definition: history.cpp:60

◆ OnMouseMove()

void GenericDrawTool::OnMouseMove ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)
inlinevirtual

Reimplemented from ToolBase.

Definition at line 269 of file mouse.cpp.

270  {
271  draw(bLeftButton, x, y);
272  }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
virtual void draw(BOOL bLeftButton, LONG x, LONG y)=0
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

The documentation for this struct was generated from the following file: