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

Public Member Functions

 PenTool ()
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 375 of file mouse.cpp.

Constructor & Destructor Documentation

◆ PenTool()

PenTool::PenTool ( )

Definition at line 377 of file mouse.cpp.

378  {
379  }
GenericDrawTool(TOOLTYPE type)
Definition: mouse.cpp:257

Member Function Documentation

◆ draw()

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

Implements GenericDrawTool.

Definition at line 381 of file mouse.cpp.

382  {
383  COLORREF rgb = bLeftButton ? m_fg : m_bg;
384  Line(m_hdc, last.x, last.y, x, y, rgb, 1);
385  SetPixel(m_hdc, x, y, rgb);
386  }
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition: arm.h:50
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
POINT last
Definition: font.c:46
HDC m_hdc
Definition: toolsmodel.h:37
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
struct Line Line
Definition: wdfdevice.h:4081
Definition: toolsmodel.h:38
Definition: windef.h:300
Definition: toolsmodel.h:38
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3520
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

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