| 123456789101112131415161718192021222324252627282930 |
- $#include "Cursor.h"
- enum CursorShape
- {
- CS_NORMAL = 0,
- CS_RESIZEVERTICAL,
- CS_RESIZEDIAGONAL_TOPRIGHT,
- CS_RESIZEHORIZONTAL,
- CS_RESIZEDIAGONAL_TOPLEFT,
- CS_ACCEPTDROP,
- CS_REJECTDROP,
- CS_BUSY,
- CS_MAX_SHAPES
- };
- class Cursor : public BorderImage
- {
- Cursor(Context* context);
- virtual ~Cursor();
-
- void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot);
-
- void SetShape(CursorShape shape);
- void SetUseSystemShapes(bool enable);
- CursorShape GetShape() const;
- bool GetUseSystemShapes() const;
- tolua_property__get_set CursorShape shape;
- tolua_property__get_set bool useSystemShapes;
- };
|