ReactOS 0.4.15-dev-6694-g4ba8af9
BrushTool Struct Reference
Inheritance diagram for BrushTool:
Collaboration diagram for BrushTool:

Public Member Functions

 BrushTool ()
 
void draw (BOOL bLeftButton, LONG x, LONG y) override
 
void OnSpecialTweak (BOOL bMinus) override
 
- Public Member Functions inherited from SmoothDrawTool
 SmoothDrawTool (TOOLTYPE type)
 
virtual void draw (BOOL bLeftButton, LONG x, LONG y)=0
 
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
 
BOOL OnMouseMove (BOOL bLeftButton, LONG &x, LONG &y) override
 
BOOL OnButtonUp (BOOL bLeftButton, LONG &x, LONG &y) override
 
void OnFinishDraw () override
 
void OnCancelDraw () override
 
- Public Member Functions inherited from ToolBase
 ToolBase (TOOLTYPE tool)
 
virtual ~ToolBase ()
 
virtual void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
 
virtual BOOL OnMouseMove (BOOL bLeftButton, LONG &x, LONG &y)
 
virtual BOOL OnButtonUp (BOOL bLeftButton, LONG &x, LONG &y)
 
virtual void OnCancelDraw ()
 
virtual void OnFinishDraw ()
 
virtual void OnDrawOverlayOnImage (HDC hdc)
 
virtual void OnDrawOverlayOnCanvas (HDC hdc)
 
virtual void OnSpecialTweak (BOOL bMinus)
 
void beginEvent ()
 
void endEvent ()
 
void reset ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ToolBase
static ToolBasecreateToolObject (TOOLTYPE type)
 
- Public Attributes inherited from SmoothDrawTool
DIRECTION m_direction = NO_DIRECTION
 
- 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 s_pointSP = 0
 
static POINT s_pointStack [256] = { { 0 } }
 
- Protected Member Functions inherited from ToolBase
void OnDrawSelectionOnCanvas (HDC hdc)
 

Detailed Description

Definition at line 608 of file mouse.cpp.

Constructor & Destructor Documentation

◆ BrushTool()

BrushTool::BrushTool ( )
inline

Definition at line 610 of file mouse.cpp.

611 {
612 }
@ TOOL_BRUSH
Definition: toolsmodel.h:19

Member Function Documentation

◆ draw()

void BrushTool::draw ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)
inlineoverridevirtual

Implements SmoothDrawTool.

Definition at line 614 of file mouse.cpp.

615 {
616 COLORREF rgb = bLeftButton ? m_fg : m_bg;
619 }
BrushStyle GetBrushStyle() const
Definition: toolsmodel.cpp:125
INT GetBrushWidth() const
Definition: toolsmodel.cpp:72
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
POINT g_ptEnd
Definition: globalvar.h:14
HDC m_hdc
Definition: toolsmodel.h:44
COLORREF m_fg
Definition: toolsmodel.h:45
COLORREF m_bg
Definition: toolsmodel.h:45
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3521
DWORD COLORREF
Definition: windef.h:300

◆ OnSpecialTweak()

void BrushTool::OnSpecialTweak ( BOOL  bMinus)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 621 of file mouse.cpp.

622 {
624 }
void MakeBrushThickerOrThinner(BOOL bThinner)
Definition: toolsmodel.cpp:96

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