ReactOS 0.4.15-dev-6052-g2626c72
EllipseTool Struct Reference
Inheritance diagram for EllipseTool:
Collaboration diagram for EllipseTool:

Public Member Functions

 EllipseTool ()
 
virtual void draw (BOOL bLeftButton, LONG x, LONG y)
 
- Public Member Functions inherited from GenericDrawTool
 GenericDrawTool (TOOLTYPE type)
 
virtual void draw (BOOL bLeftButton, LONG x, LONG y)=0
 
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 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 ()
 
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 706 of file mouse.cpp.

Constructor & Destructor Documentation

◆ EllipseTool()

EllipseTool::EllipseTool ( )
inline

Definition at line 708 of file mouse.cpp.

709 {
710 }
@ TOOL_ELLIPSE
Definition: toolsmodel.h:27

Member Function Documentation

◆ draw()

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

Implements GenericDrawTool.

Definition at line 712 of file mouse.cpp.

713 {
715 if (GetAsyncKeyState(VK_SHIFT) < 0)
716 regularize(start.x, start.y, x, y);
717 if (bLeftButton)
719 else
721 }
void regularize(LONG x0, LONG y0, LONG &x1, LONG &y1)
Definition: mouse.cpp:20
void ResetToPrevious(void)
Definition: history.cpp:100
int GetLineWidth() const
Definition: toolsmodel.cpp:43
int GetShapeStyle() const
Definition: toolsmodel.cpp:54
void Ellp(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, int thickness, int style)
Definition: drawing.cpp:40
GLuint start
Definition: gl.h:1545
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ToolsModel toolsModel
Definition: toolsmodel.cpp:11
ImageModel imageModel
Definition: history.cpp:11
HDC m_hdc
Definition: toolsmodel.h:37
COLORREF m_fg
Definition: toolsmodel.h:38
COLORREF m_bg
Definition: toolsmodel.h:38
#define VK_SHIFT
Definition: winuser.h:2192
SHORT WINAPI GetAsyncKeyState(_In_ int)

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