ReactOS 0.4.16-dev-401-g45b008d
|
#include <toolsmodel.h>
Public Member Functions | |
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 () |
Static Public Member Functions | |
static ToolBase * | createToolObject (TOOLTYPE type) |
Public Attributes | |
HDC | m_hdc |
COLORREF | m_fg |
COLORREF | m_bg |
Definition at line 41 of file toolsmodel.h.
|
inline |
Definition at line 46 of file toolsmodel.h.
|
inlinevirtual |
Definition at line 47 of file toolsmodel.h.
void ToolBase::beginEvent | ( | ) |
Definition at line 131 of file mouse.cpp.
Referenced by ToolsModel::OnButtonDown(), ToolsModel::OnButtonUp(), ToolsModel::OnEndDraw(), and ToolsModel::OnMouseMove().
Definition at line 1127 of file mouse.cpp.
Referenced by ToolsModel::GetOrCreateTool().
void ToolBase::endEvent | ( | ) |
Definition at line 138 of file mouse.cpp.
Referenced by ToolsModel::OnButtonDown(), ToolsModel::OnButtonUp(), ToolsModel::OnEndDraw(), and ToolsModel::OnMouseMove().
|
inlinevirtual |
Reimplemented in TwoPointDrawTool, SmoothDrawTool, SelectionBaseTool, FillTool, ZoomTool, AirBrushTool, TextTool, BezierTool, and ShapeTool.
Definition at line 49 of file toolsmodel.h.
Referenced by ToolsModel::OnButtonDown().
Reimplemented in TwoPointDrawTool, SmoothDrawTool, SelectionBaseTool, ColorTool, ZoomTool, TextTool, BezierTool, and ShapeTool.
Definition at line 51 of file toolsmodel.h.
Referenced by ToolsModel::OnButtonUp().
Reimplemented in SelectionBaseTool, and ZoomTool.
Definition at line 54 of file toolsmodel.h.
Referenced by ToolsModel::OnDrawOverlayOnCanvas().
Reimplemented in BezierTool, ShapeTool, SmoothDrawTool, SelectionBaseTool, FreeSelTool, RectSelTool, AirBrushTool, TextTool, LineTool, RectTool, EllipseTool, and RRectTool.
Definition at line 53 of file toolsmodel.h.
Referenced by TwoPointDrawTool::OnButtonUp(), and ToolsModel::OnDrawOverlayOnImage().
Reimplemented in TwoPointDrawTool, SelectionBaseTool, TextTool, BezierTool, and ShapeTool.
Definition at line 125 of file mouse.cpp.
Referenced by SmoothDrawTool::OnButtonUp(), ToolsModel::OnEndDraw(), TwoPointDrawTool::OnEndDraw(), SelectionBaseTool::OnEndDraw(), TextTool::OnEndDraw(), BezierTool::OnEndDraw(), and ShapeTool::OnEndDraw().
Reimplemented in TwoPointDrawTool, SmoothDrawTool, SelectionBaseTool, ColorTool, TextTool, BezierTool, and ShapeTool.
Definition at line 50 of file toolsmodel.h.
Referenced by ToolsModel::OnMouseMove().
Reimplemented in TwoPointDrawTool, SelectionBaseTool, RubberTool, PenTool, BrushTool, AirBrushTool, BezierTool, and ShapeTool.
Definition at line 56 of file toolsmodel.h.
Referenced by ToolsModel::SpecialTweak().
void ToolBase::reset | ( | ) |
Definition at line 106 of file mouse.cpp.
Referenced by OnEndDraw(), and ToolsModel::resetTool().
COLORREF ToolBase::m_bg |
Definition at line 44 of file toolsmodel.h.
Referenced by beginEvent(), TextTool::draw(), FillTool::OnButtonDown(), RubberTool::OnDraw(), PenTool::OnDraw(), BrushTool::OnDraw(), AirBrushTool::OnDraw(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
COLORREF ToolBase::m_fg |
Definition at line 44 of file toolsmodel.h.
Referenced by beginEvent(), TextTool::draw(), FillTool::OnButtonDown(), RubberTool::OnDraw(), PenTool::OnDraw(), BrushTool::OnDraw(), AirBrushTool::OnDraw(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
HDC ToolBase::m_hdc |
Definition at line 43 of file toolsmodel.h.
Referenced by beginEvent(), endEvent(), ColorTool::fetchColor(), FillTool::OnButtonDown(), TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), TextTool::OnButtonUp(), TextTool::OnEndDraw(), BezierTool::OnEndDraw(), and ShapeTool::OnEndDraw().