ReactOS 0.4.15-dev-6639-gebfec38
RRectTool Struct Reference
Inheritance diagram for RRectTool:
Collaboration diagram for RRectTool:

Public Member Functions

 RRectTool ()
 
void OnDrawOverlayOnImage (HDC hdc) override
 
- Public Member Functions inherited from TwoPointDrawTool
 TwoPointDrawTool (TOOLTYPE type)
 
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
 
void OnMouseMove (BOOL bLeftButton, LONG x, LONG y) override
 
void 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 void OnMouseMove (BOOL bLeftButton, LONG x, LONG y)
 
virtual void OnButtonUp (BOOL bLeftButton, LONG x, LONG y)
 
virtual void OnCancelDraw ()
 
virtual void OnFinishDraw ()
 
virtual void OnDrawOverlayOnImage (HDC hdc)
 
virtual void OnDrawOverlayOnCanvas (HDC hdc)
 
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
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 894 of file mouse.cpp.

Constructor & Destructor Documentation

◆ RRectTool()

RRectTool::RRectTool ( )
inline

Definition at line 896 of file mouse.cpp.

897 {
898 }
@ TOOL_RRECT
Definition: toolsmodel.h:27

Member Function Documentation

◆ OnDrawOverlayOnImage()

void RRectTool::OnDrawOverlayOnImage ( HDC  hdc)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 900 of file mouse.cpp.

901 {
902 if (!m_bDrawing)
903 return;
904 if (GetAsyncKeyState(VK_SHIFT) < 0)
906 if (m_bLeftButton)
908 else
910 }
void regularize(LONG x0, LONG y0, LONG &x1, LONG &y1)
Definition: mouse.cpp:19
int GetLineWidth() const
Definition: toolsmodel.cpp:47
int GetShapeStyle() const
Definition: toolsmodel.cpp:58
void RRect(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
Definition: drawing.cpp:54
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
POINT g_ptEnd
Definition: globalvar.h:14
POINT g_ptStart
Definition: main.cpp:13
HDC hdc
Definition: main.c:9
COLORREF m_fg
Definition: toolsmodel.h:37
COLORREF m_bg
Definition: toolsmodel.h:37
BOOL m_bLeftButton
Definition: mouse.cpp:287
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define VK_SHIFT
Definition: winuser.h:2192
SHORT WINAPI GetAsyncKeyState(_In_ int)

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