ReactOS  0.4.15-dev-5606-gf34e425
RectTool Struct Reference
Inheritance diagram for RectTool:
Collaboration diagram for RectTool:

Public Member Functions

 RectTool ()
virtual void draw (BOOL bLeftButton, LONG x, LONG y)
- Public Member Functions inherited from GenericDrawTool
 GenericDrawTool (TOOLTYPE type)
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
void OnMouseMove (BOOL bLeftButton, LONG x, LONG y)
void OnButtonUp (BOOL bLeftButton, LONG x, LONG y)
void OnCancelDraw ()
- Public Member Functions inherited from ToolBase
 ToolBase (TOOLTYPE tool)
virtual ~ToolBase ()
virtual void OnFinishDraw ()
void beginEvent ()
void endEvent ()
void reset ()

Additional Inherited Members

- Static Public Member Functions inherited from ToolBase
static ToolBasecreateToolObject (TOOLTYPE type)
- Public Attributes inherited from ToolBase
HDC m_hdc
- Static Public Attributes inherited from ToolBase
static INT pointSP = 0
static POINT pointStack [256] = { { 0 } }

Detailed Description

Definition at line 612 of file mouse.cpp.

Constructor & Destructor Documentation

◆ RectTool()

RectTool::RectTool ( )

Definition at line 614 of file mouse.cpp.

615  {
616  }
GenericDrawTool(TOOLTYPE type)
Definition: mouse.cpp:257

Member Function Documentation

◆ draw()

virtual void RectTool::draw ( BOOL  bLeftButton,
LONG  x,
LONG  y 

Implements GenericDrawTool.

Definition at line 618 of file mouse.cpp.

619  {
621  if (GetAsyncKeyState(VK_SHIFT) < 0)
622  regularize(start.x, start.y, x, y);
623  if (bLeftButton)
625  else
627  }
ToolsModel toolsModel
Definition: main.cpp:18
HDC m_hdc
Definition: toolsmodel.h:37
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define VK_SHIFT
Definition: winuser.h:2192
int GetLineWidth() const
Definition: toolsmodel.cpp:43
Definition: toolsmodel.h:38
int GetShapeStyle() const
Definition: toolsmodel.cpp:54
Definition: toolsmodel.h:38
SHORT WINAPI GetAsyncKeyState(_In_ int)
ImageModel imageModel
Definition: main.cpp:32
GLuint start
Definition: gl.h:1545
void regularize(LONG x0, LONG y0, LONG &x1, LONG &y1)
Definition: mouse.cpp:30
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void ResetToPrevious(void)
Definition: history.cpp:100
struct Rect Rect

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