Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreCursor.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_CURSOR__
8 #define __HDI_CORE_CURSOR__
9 
10 #include "hdicorePoint.h"
11 #include "hdicoreTypes.h"
12 
13 namespace hdi
14 {
15  namespace plugin
16  {
17  class Cursor;
18  }
19 
20  namespace core
21  {
25  class Cursor
26  {
27  public:
32  {
33  BrushCursor = 10,
34  CrosshairsCursor = 20,
35  CrosshairsAddCursor = 30,
36  CrosshairsAnchorCursor = 40,
37  CrosshairsCircleBoldCursor = 50,
38  CrosshairsCircleBrokenCursor = 60,
39  CrosshairsCircleWholeCursor = 70,
40  CrosshairsCloseCursor = 80,
41  CrosshairsContinueCursor = 90,
42  CrosshairsDeleteCursor = 100,
43  CrosshairsEllipsisCursor = 110,
44  CrosshairsNoCursor = 120,
45  CrosshairsSquareBrokenCursor = 130,
46  DirectMoveCursor = 140,
47  DirectMoveCopyCursor = 150,
48  DirectSelectCursor = 160,
49  DirectSelectAddCursor = 170,
50  DirectSelectBehindCursor = 180,
51  EyeDropperCursor = 190,
52  EyeDropperFilledCursor = 200,
53  FistCursor = 210,
54  HandCursor = 220,
55  MoveCursor = 230,
56  MoveCopyCursor = 240,
57  PenCursor = 250,
58  PenAddCursor = 260,
59  PencilCursor = 270,
60  PenCloseCursor = 280,
61  PenContinueCursor = 290,
62  PenCornerCursor = 300,
63  PenNewCursor = 310,
64  PenSubstractCursor = 320,
65  PenWeldCursor = 330,
66  RotateBottomCenterCursor = 340,
67  RotateBottomLeftCursor = 350,
68  RotateBottomRightCursor = 360,
69  RotateMidLeftCursor = 370,
70  RotateMidRightCursor = 380,
71  RotateTopCenterCursor = 390,
72  RotateTopLeftCursor = 400,
73  RotateTopRightCursor = 410,
74  ScaleDeclineCursor = 420,
75  ScaleHorizontalCursor = 430,
76  ScaleInclineCursor = 440,
77  ScaleVerticalCursor = 450,
78  SelectCursor = 460,
79  SelectBehindCursor = 470,
80  WatchCursor = 480,
81  ZoomInCursor = 490,
82  ZoomNoneCursor = 500,
83  ZoomOutCursor = 510
84  };
85 
96  Cursor();
97 
105  Cursor(const Cursor& c_);
106 
114  Cursor(const AdobeCursor cursor_);
115 
124  Cursor(const int16_t cursorID_, const Point& hotSpot_);
125 
133  static Cursor CurrentCursor();
134 
143  Cursor& operator=(const Cursor& rhs_);
144 
150  virtual ~Cursor();
151 
159  virtual bool isEmpty() const;
160 
166  virtual void enable();
167 
175  virtual Point hotSpot() const;
176 
185  virtual bool operator==(const Cursor& rhs_) const;
186 
195  virtual bool operator!=(const Cursor& rhs_) const;
196 
204  static Point screenLoc();
205 
213  static void mouseDown(const Point& pt_);
214 
222  static void mouseUp(const Point& pt_);
223 
233  static void click(const Point& pt_);
234 
235 
236  private:
237  friend plugin::Cursor* __accessImpl(const Cursor&);
238 
242  void* __data;
243 
249  void* __impl() const;
250  };
251 
252  typedef std::auto_ptr<Cursor> CursorAP;
253 
254  extern plugin::Cursor* __accessImpl(const Cursor&);
255  }
256 }
257 
258 #endif
259 // __HDI_CORE_CURSOR__
static Point screenLoc()
Gets the absolute location of the cursor on the screen.
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
Cursor & operator=(const Cursor &rhs_)
Assigns one Cursor object to another.
virtual bool operator==(const Cursor &rhs_) const
Tests whether a given Cursor object is the same as another.
virtual bool isEmpty() const
Gets whether the target Cursor object is empty (constructed with the default ctor) ...
static Cursor CurrentCursor()
Named constructor to acquire a Cursor object for whichever cursor image is current.
static void mouseUp(const Point &pt_)
Simulates a mouse up (with no modifier keys) at an absolute location on the screen.
static void mouseDown(const Point &pt_)
Simulates a mouse down (with no modifier keys) at an absolute location on the screen.
Represents a cursor that can be shown on the screen, as well as metadata about the current cursor...
Definition: hdicoreCursor.h:25
virtual Point hotSpot() const
Gets the cursor hot spot.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Header file for describing 2D points.
Definition: hdicoreaiArray.h:12
AdobeCursor
Describes the built-in Adobe cursors that can be acquired.
Definition: hdicoreCursor.h:31
virtual bool operator!=(const Cursor &rhs_) const
Tests whether a given Cursor object is not the same as another.
virtual void enable()
Shows the cursor (sets it as current)
virtual ~Cursor()
Destructs a Cursor object.
Cursor()
Constructs an empty Cursor object.
static void click(const Point &pt_)
Simulates a click (with no modifier keys) at an absolute location on the screen.