CheckBox.pkg 498 B

1234567891011121314151617181920
  1. $#include "CheckBox.h"
  2. class CheckBox : public BorderImage
  3. {
  4. public:
  5. // Methods:
  6. CheckBox(Context* context);
  7. virtual ~CheckBox();
  8. void SetChecked(bool enable);
  9. void SetCheckedOffset(const IntVector2& rect);
  10. void SetCheckedOffset(int x, int y);
  11. bool IsChecked() const;
  12. const IntVector2& GetCheckedOffset() const;
  13. // Properties:
  14. tolua_property__is_set bool checked;
  15. tolua_property__get_set IntVector2& checkedOffset;
  16. };