ReactOS 0.4.15-dev-8344-g0574987
AirBrushTool Struct Reference
Inheritance diagram for AirBrushTool:
Collaboration diagram for AirBrushTool:

Public Member Functions

void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
 
void OnDrawOverlayOnImage (HDC hdc) override
 
void OnDraw (HDC hdc, BOOL bLeftButton, POINT pt0, POINT pt1) override
 
void OnSpecialTweak (BOOL bMinus) override
 
- Public Member Functions inherited from SmoothDrawTool
virtual void OnDraw (HDC hdc, BOOL bLeftButton, POINT pt0, POINT pt1)=0
 
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
 
BOOL OnMouseMove (BOOL bLeftButton, LONG &x, LONG &y) override
 
BOOL OnButtonUp (BOOL bLeftButton, LONG &x, LONG &y) override
 
void OnDrawOverlayOnImage (HDC hdc) override
 
- Public Member Functions inherited from ToolBase
 ToolBase ()
 
virtual ~ToolBase ()
 
virtual void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
 
virtual BOOL OnMouseMove (BOOL bLeftButton, LONG &x, LONG &y)
 
virtual BOOL OnButtonUp (BOOL bLeftButton, LONG &x, LONG &y)
 
virtual void OnDrawOverlayOnImage (HDC hdc)
 
virtual void OnDrawOverlayOnCanvas (HDC hdc)
 
virtual void OnSpecialTweak (BOOL bMinus)
 
virtual void OnEndDraw (BOOL bCancel)
 
void beginEvent ()
 
void endEvent ()
 
void reset ()
 

Public Attributes

DWORD m_dwTick = 0
 
- Public Attributes inherited from SmoothDrawTool
DIRECTION m_direction = NO_DIRECTION
 
BOOL m_bShiftDown = FALSE
 
BOOL m_bLeftButton = FALSE
 
- Public Attributes inherited from ToolBase
HDC m_hdc
 
COLORREF m_fg
 
COLORREF m_bg
 

Additional Inherited Members

- Static Public Member Functions inherited from ToolBase
static ToolBasecreateToolObject (TOOLTYPE type)
 

Detailed Description

Definition at line 735 of file mouse.cpp.

Member Function Documentation

◆ OnButtonDown()

void AirBrushTool::OnButtonDown ( BOOL  bLeftButton,
LONG  x,
LONG  y,
BOOL  bDoubleClick 
)
inlineoverridevirtual

Reimplemented from SmoothDrawTool.

Definition at line 739 of file mouse.cpp.

740 {
742 SmoothDrawTool::OnButtonDown(bLeftButton, x, y, bDoubleClick);
743 }
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
DWORD m_dwTick
Definition: mouse.cpp:737
void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
Definition: mouse.cpp:310

◆ OnDraw()

void AirBrushTool::OnDraw ( HDC  hdc,
BOOL  bLeftButton,
POINT  pt0,
POINT  pt1 
)
inlineoverridevirtual

Implements SmoothDrawTool.

Definition at line 751 of file mouse.cpp.

752 {
753 COLORREF rgb = bLeftButton ? m_fg : m_bg;
755 }
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
INT GetAirBrushRadius() const
Definition: toolsmodel.cpp:183
void Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
Definition: drawing.cpp:153
HDC hdc
Definition: main.c:9
COLORREF m_fg
Definition: toolsmodel.h:44
COLORREF m_bg
Definition: toolsmodel.h:44
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3521
DWORD COLORREF
Definition: windef.h:300

◆ OnDrawOverlayOnImage()

void AirBrushTool::OnDrawOverlayOnImage ( HDC  hdc)
inlineoverridevirtual

Reimplemented from SmoothDrawTool.

Definition at line 745 of file mouse.cpp.

746 {
749 }
void __cdecl srand(_In_ unsigned int _Seed)
void OnDrawOverlayOnImage(HDC hdc) override
Definition: mouse.cpp:364

◆ OnSpecialTweak()

void AirBrushTool::OnSpecialTweak ( BOOL  bMinus)
inlineoverridevirtual

Reimplemented from ToolBase.

Definition at line 757 of file mouse.cpp.

758 {
760 }
void MakeAirBrushThickerOrThinner(BOOL bThinner)
Definition: toolsmodel.cpp:100

Member Data Documentation

◆ m_dwTick

DWORD AirBrushTool::m_dwTick = 0

Definition at line 737 of file mouse.cpp.

Referenced by OnButtonDown(), and OnDrawOverlayOnImage().


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