Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Represents a cursor that can be shown on the screen, as well as metadata about the current cursor. More...
#include <hdicoreCursor.h>
Public Types | |
enum | AdobeCursor { BrushCursor = 10 , CrosshairsCursor = 20 , CrosshairsAddCursor = 30 , CrosshairsAnchorCursor = 40 , CrosshairsCircleBoldCursor = 50 , CrosshairsCircleBrokenCursor = 60 , CrosshairsCircleWholeCursor = 70 , CrosshairsCloseCursor = 80 , CrosshairsContinueCursor = 90 , CrosshairsDeleteCursor = 100 , CrosshairsEllipsisCursor = 110 , CrosshairsNoCursor = 120 , CrosshairsSquareBrokenCursor = 130 , DirectMoveCursor = 140 , DirectMoveCopyCursor = 150 , DirectSelectCursor = 160 , DirectSelectAddCursor = 170 , DirectSelectBehindCursor = 180 , EyeDropperCursor = 190 , EyeDropperFilledCursor = 200 , FistCursor = 210 , HandCursor = 220 , MoveCursor = 230 , MoveCopyCursor = 240 , PenCursor = 250 , PenAddCursor = 260 , PencilCursor = 270 , PenCloseCursor = 280 , PenContinueCursor = 290 , PenCornerCursor = 300 , PenNewCursor = 310 , PenSubstractCursor = 320 , PenWeldCursor = 330 , RotateBottomCenterCursor = 340 , RotateBottomLeftCursor = 350 , RotateBottomRightCursor = 360 , RotateMidLeftCursor = 370 , RotateMidRightCursor = 380 , RotateTopCenterCursor = 390 , RotateTopLeftCursor = 400 , RotateTopRightCursor = 410 , ScaleDeclineCursor = 420 , ScaleHorizontalCursor = 430 , ScaleInclineCursor = 440 , ScaleVerticalCursor = 450 , SelectCursor = 460 , SelectBehindCursor = 470 , WatchCursor = 480 , ZoomInCursor = 490 , ZoomNoneCursor = 500 , ZoomOutCursor = 510 } |
Describes the built-in Adobe cursors that can be acquired. | |
Public Member Functions | |
Cursor () | |
Constructs an empty Cursor object. | |
Cursor (const Cursor &c_) | |
Constructs a new Cursor object from an existing Cursor object (copy constructor) | |
Cursor (const AdobeCursor cursor_) | |
Constructs a new Cursor object from a built-in Adobe cursor. | |
Cursor (const int16_t cursorID_, const int16_t cursorID3to2x_, const int16_t cursorID2x_, const Point &hotSpot_) | |
Constructs a new Cursor object from a PNG image and a hot spot. | |
Cursor (const int16_t cursorID_, const int16_t cursorID3to2x_, const int16_t cursorID2x_, const int16_t cursorID3x_, const int16_t cursorID4x_, const Point &hotSpot_) | |
Constructs a new Cursor object from a PNG image and a hot spot. | |
Cursor & | operator= (const Cursor &rhs_) |
Assigns one Cursor object to another. | |
virtual | ~Cursor () |
Destructs a Cursor object. | |
virtual bool | isEmpty () const |
Gets whether the target Cursor object is empty (constructed with the default ctor) | |
virtual void | enable () |
Shows the cursor (sets it as current) | |
virtual Point | hotSpot () const |
Gets the cursor hot spot. | |
virtual bool | operator== (const Cursor &rhs_) const |
Tests whether a given Cursor object is the same as another. | |
virtual bool | operator!= (const Cursor &rhs_) const |
Tests whether a given Cursor object is not the same as another. | |
Static Public Member Functions | |
static Cursor | CurrentCursor () |
Named constructor to acquire a Cursor object for whichever cursor image is current. | |
static Point | screenLoc () |
Gets the absolute location of the cursor on the screen. | |
static void | mouseDown (const Point &pt_) |
Simulates a mouse down (with no modifier keys) at an absolute location on the screen. | |
static void | mouseUp (const Point &pt_) |
Simulates a mouse up (with no modifier keys) at an absolute location on the screen. | |
static void | click (const Point &pt_) |
Simulates a click (with no modifier keys) at an absolute location on the screen. | |
Static Public Attributes | |
static const int16_t | noneImageID = 0 |
Default image ID to indicate that no image should be used. | |
Friends | |
pui::Cursor * | __accessImpl (const Cursor &) |
Represents a cursor that can be shown on the screen, as well as metadata about the current cursor.
hdi::core::Cursor::Cursor | ( | ) |
Constructs an empty Cursor object.
hdi::core::Cursor::Cursor | ( | const Cursor & | c_ | ) |
hdi::core::Cursor::Cursor | ( | const AdobeCursor | cursor_ | ) |
Constructs a new Cursor object from a built-in Adobe cursor.
cursor_ | Adobe cursor identifier |
hdi::core::Cursor::Cursor | ( | const int16_t | cursorID_, |
const int16_t | cursorID3to2x_, | ||
const int16_t | cursorID2x_, | ||
const Point & | hotSpot_ | ||
) |
Constructs a new Cursor object from a PNG image and a hot spot.
cursorID_ | PNGI resource ID for the cursor |
cursorID3to2x_ | PNGI resource ID for the cursor at 1.5x resolution |
cursorID2x_ | PNGI resource ID for the cursor at 2x resolution |
hotSpot_ | Coordinate within the cursor that acts as the hot spot, at 1x resolution |
hdi::core::Cursor::Cursor | ( | const int16_t | cursorID_, |
const int16_t | cursorID3to2x_, | ||
const int16_t | cursorID2x_, | ||
const int16_t | cursorID3x_, | ||
const int16_t | cursorID4x_, | ||
const Point & | hotSpot_ | ||
) |
Constructs a new Cursor object from a PNG image and a hot spot.
cursorID_ | PNGI resource ID for the cursor |
cursorID3to2x_ | PNGI resource ID for the cursor at 1.5x resolution |
cursorID2x_ | PNGI resource ID for the cursor at 2x resolution |
hotSpot_ | Coordinate within the cursor that acts as the hot spot, at 1x resolution |
|
virtual |
Destructs a Cursor object.
|
static |
Simulates a click (with no modifier keys) at an absolute location on the screen.
pt_ | Point to click |
|
static |
|
virtual |
Shows the cursor (sets it as current)
|
virtual |
Gets the cursor hot spot.
|
virtual |
|
static |
Simulates a mouse down (with no modifier keys) at an absolute location on the screen.
pt_ | Point at which to create the mouse down event |
|
static |
Simulates a mouse up (with no modifier keys) at an absolute location on the screen.
pt_ | Point at which to create the mouse up event |
|
virtual |
|
virtual |
|
static |
Gets the absolute location of the cursor on the screen.
|
static |
Default image ID to indicate that no image should be used.