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

Public Member Functions

 LineTool ()
 
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
TOOLTYPE m_tool
 
HDC m_hdc
 
COLORREF m_fg
 
COLORREF m_bg
 
- Static Public Attributes inherited from ToolBase
static INT pointSP = 0
 
static POINT pointStack [256] = { { 0 } }
 

Detailed Description

Definition at line 519 of file mouse.cpp.

Constructor & Destructor Documentation

◆ LineTool()

LineTool::LineTool ( )
inline

Definition at line 521 of file mouse.cpp.

522  {
523  }
GenericDrawTool(TOOLTYPE type)
Definition: mouse.cpp:257

Member Function Documentation

◆ draw()

virtual void LineTool::draw ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)
inlinevirtual

Implements GenericDrawTool.

Definition at line 525 of file mouse.cpp.

526  {
528  if (GetAsyncKeyState(VK_SHIFT) < 0)
529  roundTo8Directions(start.x, start.y, x, y);
530  COLORREF rgb = bLeftButton ? m_fg : m_bg;
532  }
ToolsModel toolsModel
Definition: main.cpp:18
HDC m_hdc
Definition: toolsmodel.h:37
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
struct Line Line
Definition: wdfdevice.h:4081
#define VK_SHIFT
Definition: winuser.h:2192
void roundTo8Directions(LONG x0, LONG y0, LONG &x1, LONG &y1)
Definition: mouse.cpp:39
int GetLineWidth() const
Definition: toolsmodel.cpp:43
COLORREF m_bg
Definition: toolsmodel.h:38
DWORD COLORREF
Definition: windef.h:300
COLORREF m_fg
Definition: toolsmodel.h:38
SHORT WINAPI GetAsyncKeyState(_In_ int)
ImageModel imageModel
Definition: main.cpp:32
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3520
GLuint start
Definition: gl.h:1545
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void ResetToPrevious(void)
Definition: history.cpp:100

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