tahoma2d/toonz/sources/include/tools/cursors.h

121 lines
2.7 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef CURSORS_INCLUDED
#define CURSORS_INCLUDED
2016-06-15 18:43:10 +12:00
namespace ToolCursor {
2016-03-19 06:57:51 +13:00
enum {
2016-06-15 18:43:10 +12:00
CURSOR_NONE, // no cursor...
CURSOR_DEFAULT = CURSOR_NONE, // window class cursor...
CURSOR_ARROW,
CURSOR_HAND,
CURSOR_HOURGLASS,
CURSOR_DUMMY,
2016-04-15 17:11:23 +12:00
#ifndef _WIN32
2016-06-15 18:43:10 +12:00
CURSOR_DND,
CURSOR_QUESTION,
2016-03-19 06:57:51 +13:00
#endif
2016-06-15 18:43:10 +12:00
PenCursor,
2018-05-17 18:03:05 +12:00
PenLargeCursor,
PenCrosshairCursor,
2016-06-15 18:43:10 +12:00
BenderCursor,
CutterCursor,
DistortCursor,
EraserCursor,
FillCursor,
MoveCursor,
FlipHCursor,
FlipVCursor,
IronCursor,
LevelSelectCursor,
MagnetCursor,
PanCursor,
PickerCursor,
PointingHandCursor,
2016-06-15 18:43:10 +12:00
PumpCursor,
RotCursor,
RotTopLeft,
RotBottomRight,
RotBottomLeft,
RotateCursor,
ScaleCursor,
ScaleInvCursor,
ScaleHCursor,
ScaleVCursor,
StrokeSelectCursor,
TapeCursor,
TypeInCursor,
TypeOutCursor,
ZoomCursor,
PinchCursor,
PinchAngleCursor,
PinchWaveCursor,
SplineEditorCursor,
SplineEditorCursorSelect,
SplineEditorCursorAdd,
TrackerCursor,
ForbiddenCursor,
2019-01-23 17:30:45 +13:00
CURSOR_NO = ForbiddenCursor,
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
NormalEraserCursor,
RectEraserCursor,
2016-07-11 21:55:17 +12:00
PickerCursorOrganize,
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
PickerRGBWhite,
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
FillCursorL,
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
MoveEWCursor,
MoveNSCursor,
DisableCursor,
ScaleGlobalCursor,
RulerModifyCursor,
2017-10-26 19:17:19 +13:00
RulerNewCursor,
2018-05-17 18:03:05 +12:00
// Base cursors with fixed set of decorations. See below
FxGadgetCursorBase,
EditFxCursorBase,
MoveZCursorBase,
PickerCursorLineBase,
PickerCursorAreaBase,
PickerRGBBase,
ScaleHVCursorBase,
2017-10-26 19:17:19 +13:00
// extra options for decorating the cursor
2017-11-22 16:52:08 +13:00
Ex_Negate = 0x100, // used for black bg
Ex_FreeHand = 0x200,
Ex_PolyLine = 0x400,
Ex_Rectangle = 0x800,
Ex_Line = 0x1000,
Ex_Area = 0x2000,
2018-05-17 18:03:05 +12:00
Ex_Fill_NoAutopaint = 0x4000,
Ex_FX = 0x8000,
Ex_Z = 0x10000,
Ex_StyleLine = 0x20000,
Ex_StyleArea = 0x40000,
Ex_RGB = 0x80000,
Ex_HV = 0x100000,
Ex_Precise = 0x200000,
Ex_Prev = 0x400000,
Ex_Next = 0x800000,
2018-05-17 18:03:05 +12:00
// This section is for cursors that have fixed text that needs to
// be handled separately when flipping for left-handed cursors.
// The base gets flipped, but a left-handed version of text will be
// used instead of flipped.
FxGadgetCursor = FxGadgetCursorBase | Ex_FX,
EditFxCursor = EditFxCursorBase | Ex_FX,
MoveZCursor = MoveZCursorBase | Ex_Z,
PickerCursorLine = PickerCursorLineBase | Ex_StyleLine,
PickerCursorArea = PickerCursorAreaBase | Ex_StyleArea,
PickerRGB = PickerRGBBase | Ex_RGB,
ScaleHVCursor = ScaleHVCursorBase | Ex_HV,
PickPrevCursor = PointingHandCursor | Ex_Prev,
PickNextCursor = PointingHandCursor | Ex_Next
2016-03-19 06:57:51 +13:00
};
} // namespace ToolCursor
2016-03-19 06:57:51 +13:00
#endif