ReactOS 0.4.15-dev-8191-gbc6c731
PenTool Struct Reference
Inheritance diagram for PenTool:
Collaboration diagram for PenTool:

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 704 of file mouse.cpp.

Member Function Documentation

◆ OnDraw()

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

Implements SmoothDrawTool.

Definition at line 706 of file mouse.cpp.

707 {
708 COLORREF rgb = bLeftButton ? m_fg : m_bg;
709 Line(hdc, pt0.x, pt0.y, pt1.x, pt1.y, rgb, toolsModel.GetPenWidth());
710 }
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
INT GetPenWidth() const
Definition: toolsmodel.cpp:58
HDC hdc
Definition: main.c:9
Definition: ncftp.h:79
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
_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 712 of file mouse.cpp.

713 {
715 }
void MakePenThickerOrThinner(BOOL bThinner)
Definition: toolsmodel.cpp:88

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