Button.pkg 865 B

12345678910111213141516171819202122232425262728
  1. $#include "Button.h"
  2. class Button : public BorderImage
  3. {
  4. public:
  5. // Methods:
  6. Button(Context* context);
  7. virtual ~Button();
  8. void SetPressedOffset(const IntVector2& offset);
  9. void SetPressedOffset(int x, int y);
  10. void SetLabelOffset(const IntVector2& offset);
  11. void SetLabelOffset(int x, int y);
  12. void SetRepeat(float delay, float rate);
  13. void SetRepeatDelay(float delay);
  14. void SetRepeatRate(float rate);
  15. const IntVector2& GetPressedOffset() const;
  16. const IntVector2& GetLabelOffset() const;
  17. float GetRepeatDelay() const;
  18. float GetRepeatRate() const;
  19. // Properties:
  20. tolua_property__get_set IntVector2& pressedOffset;
  21. tolua_property__get_set IntVector2& labelOffset;
  22. tolua_property__get_set float repeatDelay;
  23. tolua_property__get_set float repeatRate;
  24. };