ReactOS 0.4.15-dev-6712-g46b4b55
PenTool Struct Reference
Inheritance diagram for PenTool:
Collaboration diagram for PenTool:

Public Member Functions

 PenTool ()
 
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 589 of file mouse.cpp.

Constructor & Destructor Documentation

◆ PenTool()

PenTool::PenTool ( )
inline

Definition at line 591 of file mouse.cpp.

592 {
593 }
@ TOOL_PEN
Definition: toolsmodel.h:18

Member Function Documentation

◆ draw()

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

Implements SmoothDrawTool.

Definition at line 595 of file mouse.cpp.

596 {
597 COLORREF rgb = bLeftButton ? m_fg : m_bg;
599 }
INT GetPenWidth() const
Definition: toolsmodel.cpp:60
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
Definition: ncftp.h:79
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 PenTool::OnSpecialTweak ( BOOL  bMinus)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 601 of file mouse.cpp.

602 {
604 }
void MakePenThickerOrThinner(BOOL bThinner)
Definition: toolsmodel.cpp:90

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