ReactOS 0.4.15-dev-8207-gd73a838
RubberTool Struct Reference
Inheritance diagram for RubberTool:
Collaboration diagram for RubberTool:

Public Member Functions

void OnDraw (HDC hdc, BOOL bLeftButton, POINT pt0, POINT pt1) override
 
void OnSpecialTweak (BOOL bMinus) override
 
- Public Member Functions inherited from SmoothDrawTool
virtual void OnDraw (HDC hdc, BOOL bLeftButton, POINT pt0, POINT pt1)=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 OnDrawOverlayOnImage (HDC hdc) override
 
- Public Member Functions inherited from ToolBase
 ToolBase ()
 
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 OnDrawOverlayOnImage (HDC hdc)
 
virtual void OnDrawOverlayOnCanvas (HDC hdc)
 
virtual void OnSpecialTweak (BOOL bMinus)
 
virtual void OnEndDraw (BOOL bCancel)
 
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
 
BOOL m_bShiftDown = FALSE
 
BOOL m_bLeftButton = FALSE
 
- Public Attributes inherited from ToolBase
HDC m_hdc
 
COLORREF m_fg
 
COLORREF m_bg
 

Detailed Description

Definition at line 585 of file mouse.cpp.

Member Function Documentation

◆ OnDraw()

void RubberTool::OnDraw ( HDC  hdc,
BOOL  bLeftButton,
POINT  pt0,
POINT  pt1 
)
inlineoverridevirtual

Implements SmoothDrawTool.

Definition at line 587 of file mouse.cpp.

588 {
589 if (bLeftButton)
590 Erase(hdc, pt0.x, pt0.y, pt1.x, pt1.y, m_bg, toolsModel.GetRubberRadius());
591 else
592 Replace(hdc, pt0.x, pt0.y, pt1.x, pt1.y, m_fg, m_bg, toolsModel.GetRubberRadius());
593 }
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
int GetRubberRadius() const
Definition: toolsmodel.cpp:194
void Replace(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, LONG radius)
Definition: drawing.cpp:132
void Erase(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, LONG radius)
Definition: drawing.cpp:115
HDC hdc
Definition: main.c:9
COLORREF m_fg
Definition: toolsmodel.h:44
COLORREF m_bg
Definition: toolsmodel.h:44
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48

◆ OnSpecialTweak()

void RubberTool::OnSpecialTweak ( BOOL  bMinus)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 595 of file mouse.cpp.

596 {
598 }
void MakeRubberThickerOrThinner(BOOL bThinner)
Definition: toolsmodel.cpp:106

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