ReactOS 0.4.16-dev-306-g647d351
|
Go to the source code of this file.
Classes | |
struct | TwoPointDrawTool |
struct | SmoothDrawTool |
struct | SelectionBaseTool |
struct | FreeSelTool |
struct | RectSelTool |
struct | RubberTool |
struct | FillTool |
struct | ColorTool |
struct | ZoomTool |
struct | PenTool |
struct | BrushTool |
struct | AirBrushTool |
struct | TextTool |
struct | LineTool |
struct | BezierTool |
struct | RectTool |
struct | ShapeTool |
struct | EllipseTool |
struct | RRectTool |
Macros | |
#define | THRESHOULD_DEG 15 |
Typedefs | |
typedef enum DIRECTION | DIRECTION |
Enumerations | |
enum | DIRECTION { NO_DIRECTION = -1 , DIRECTION_HORIZONTAL , DIRECTION_VERTICAL , DIRECTION_DIAGONAL_RIGHT_DOWN , DIRECTION_DIAGONAL_RIGHT_UP } |
Functions | |
void | regularize (LONG x0, LONG y0, LONG &x1, LONG &y1) |
void | roundTo8Directions (LONG x0, LONG y0, LONG &x1, LONG &y1) |
BOOL | nearlyEqualPoints (INT x0, INT y0, INT x1, INT y1) |
void | getBoundaryOfPoints (RECT &rcBoundary, SIZE_T cPoints, const POINT *pPoints) |
void | ShiftPoints (INT dx, INT dy) |
void | BuildMaskFromPoints () |
static void | pushToPoints (LONG x, LONG y) |
static DIRECTION | GetDirection (LONG x0, LONG y0, LONG x1, LONG y1) |
static void | RestrictDrawDirection (DIRECTION dir, LONG x0, LONG y0, LONG &x1, LONG &y1) |
Variables | |
static SIZE_T | s_cPoints = 0 |
static CHeapPtr< POINT, CLocalAllocator > | s_dynamicPoints |
static POINT | s_staticPoints [512] |
static SIZE_T | s_maxPoints = _countof(s_staticPoints) |
static LPPOINT | s_pPoints = s_staticPoints |
static POINT | g_ptStart |
static POINT | g_ptEnd |
Enumerator | |
---|---|
NO_DIRECTION | |
DIRECTION_HORIZONTAL | |
DIRECTION_VERTICAL | |
DIRECTION_DIAGONAL_RIGHT_DOWN | |
DIRECTION_DIAGONAL_RIGHT_UP |
void BuildMaskFromPoints | ( | ) |
Definition at line 84 of file mouse.cpp.
Referenced by SelectionBaseTool::OnButtonUp().
Definition at line 56 of file mouse.cpp.
Referenced by BuildMaskFromPoints(), SmoothDrawTool::OnButtonUp(), and ShapeTool::OnEndDraw().
Definition at line 223 of file mouse.cpp.
Referenced by SmoothDrawTool::OnMouseMove().
Definition at line 49 of file mouse.cpp.
Referenced by ShapeTool::OnButtonUp().
Definition at line 143 of file mouse.cpp.
Referenced by SmoothDrawTool::OnButtonDown(), SelectionBaseTool::OnButtonDown(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), SmoothDrawTool::OnButtonUp(), BezierTool::OnButtonUp(), ShapeTool::OnButtonUp(), SmoothDrawTool::OnMouseMove(), and SelectionBaseTool::OnMouseMove().
Definition at line 22 of file mouse.cpp.
Referenced by SelectionBaseTool::OnButtonUp(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), RRectTool::OnDrawOverlayOnImage(), and SelectionBaseTool::OnMouseMove().
Definition at line 276 of file mouse.cpp.
Referenced by SmoothDrawTool::OnButtonUp(), and SmoothDrawTool::OnMouseMove().
Definition at line 31 of file mouse.cpp.
Referenced by ShapeTool::OnButtonDown(), ShapeTool::OnButtonUp(), LineTool::OnDrawOverlayOnImage(), and ShapeTool::OnMouseMove().
Definition at line 74 of file mouse.cpp.
Referenced by BuildMaskFromPoints().
|
static |
Definition at line 17 of file mouse.cpp.
Referenced by ToolsModel::OnButtonDown(), TwoPointDrawTool::OnButtonUp(), ToolsModel::OnButtonUp(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), RRectTool::OnDrawOverlayOnImage(), ToolsModel::OnMouseMove(), and ToolBase::reset().
|
static |
Definition at line 17 of file mouse.cpp.
Referenced by ToolsModel::DrawWithMouseTool(), ToolsModel::OnButtonDown(), SelectionBaseTool::OnButtonDown(), TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), SelectionBaseTool::OnButtonUp(), TextTool::OnButtonUp(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), RRectTool::OnDrawOverlayOnImage(), SmoothDrawTool::OnMouseMove(), SelectionBaseTool::OnMouseMove(), ToolBase::reset(), and TextTool::UpdatePoint().
|
static |
Definition at line 12 of file mouse.cpp.
Referenced by BuildMaskFromPoints(), SmoothDrawTool::OnButtonDown(), SelectionBaseTool::OnButtonDown(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), SmoothDrawTool::OnButtonUp(), SelectionBaseTool::OnButtonUp(), BezierTool::OnButtonUp(), ShapeTool::OnButtonUp(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), SmoothDrawTool::OnDrawOverlayOnImage(), FreeSelTool::OnDrawOverlayOnImage(), BezierTool::OnEndDraw(), ShapeTool::OnEndDraw(), BezierTool::OnMouseMove(), ShapeTool::OnMouseMove(), pushToPoints(), ToolBase::reset(), and ShiftPoints().
|
static |
Definition at line 13 of file mouse.cpp.
Referenced by pushToPoints(), and ToolBase::reset().
|
static |
Definition at line 15 of file mouse.cpp.
Referenced by pushToPoints(), and ToolBase::reset().
|
static |
Definition at line 16 of file mouse.cpp.
Referenced by BuildMaskFromPoints(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), SmoothDrawTool::OnButtonUp(), ShapeTool::OnButtonUp(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), SmoothDrawTool::OnDrawOverlayOnImage(), FreeSelTool::OnDrawOverlayOnImage(), ShapeTool::OnEndDraw(), BezierTool::OnMouseMove(), ShapeTool::OnMouseMove(), pushToPoints(), ToolBase::reset(), and ShiftPoints().
|
static |
Definition at line 14 of file mouse.cpp.
Referenced by pushToPoints(), and ToolBase::reset().