Cursor.pkg 634 B

123456789101112131415161718192021222324252627
  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, bool osMouseVisible = false);
  19. void SetShape(CursorShape shape);
  20. CursorShape GetShape() const;
  21. tolua_property__get_set CursorShape shape;
  22. };