Button.pkg 905 B

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