Cursor.pkg 733 B

123456789101112131415161718192021222324252627282930
  1. $#include "Cursor.h"
  2. enum CursorShape
  3. {
  4. CS_NORMAL = 0,
  5. CS_RESIZEVERTICAL,
  6. CS_RESIZEDIAGONAL_TOPRIGHT,
  7. CS_RESIZEHORIZONTAL,
  8. CS_RESIZEDIAGONAL_TOPLEFT,
  9. CS_ACCEPTDROP,
  10. CS_REJECTDROP,
  11. CS_BUSY,
  12. CS_MAX_SHAPES
  13. };
  14. class Cursor : public BorderImage
  15. {
  16. Cursor(Context* context);
  17. virtual ~Cursor();
  18. void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot);
  19. void SetShape(CursorShape shape);
  20. void SetUseSystemShapes(bool enable);
  21. CursorShape GetShape() const;
  22. bool GetUseSystemShapes() const;
  23. tolua_property__get_set CursorShape shape;
  24. tolua_property__get_set bool useSystemShapes;
  25. };