| 12345678910111213141516171819202122232425262728293031 |
- $#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
- {
- public:
- // Methods:
- Cursor(Context* context);
- virtual ~Cursor();
-
- void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot, bool osMouseVisible = false);
- void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot);
-
- void SetShape(CursorShape shape);
- CursorShape GetShape() const;
-
- // Properties:
- tolua_property__get_set CursorShape shape;
- };
|