ReactOS 0.4.15-dev-8227-g32d615f
LineTool Struct Reference
Inheritance diagram for LineTool:
Collaboration diagram for LineTool:

Public Member Functions

void OnDrawOverlayOnImage (HDC hdc) override
 
- Public Member Functions inherited from TwoPointDrawTool
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 OnEndDraw (BOOL bCancel) override
 
void OnSpecialTweak (BOOL bMinus) 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 TwoPointDrawTool
BOOL m_bLeftButton = FALSE
 
BOOL m_bDrawing = FALSE
 
- Public Attributes inherited from ToolBase
HDC m_hdc
 
COLORREF m_fg
 
COLORREF m_bg
 

Detailed Description

Definition at line 893 of file mouse.cpp.

Member Function Documentation

◆ OnDrawOverlayOnImage()

void LineTool::OnDrawOverlayOnImage ( HDC  hdc)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 895 of file mouse.cpp.

896 {
897 if (!m_bDrawing)
898 return;
899 if (GetAsyncKeyState(VK_SHIFT) < 0)
903 }
static POINT g_ptEnd
Definition: mouse.cpp:17
void roundTo8Directions(LONG x0, LONG y0, LONG &x1, LONG &y1)
Definition: mouse.cpp:31
static POINT g_ptStart
Definition: mouse.cpp:17
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
int GetLineWidth() const
Definition: toolsmodel.cpp:46
HDC hdc
Definition: main.c:9
Definition: ncftp.h:79
COLORREF m_fg
Definition: toolsmodel.h:44
COLORREF m_bg
Definition: toolsmodel.h:44
BOOL m_bLeftButton
Definition: mouse.cpp:169
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
#define VK_SHIFT
Definition: winuser.h:2202
SHORT WINAPI GetAsyncKeyState(_In_ int)

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