Menu.pkg 847 B

123456789101112131415161718192021222324252627
  1. $#include "Menu.h"
  2. class Menu : public Button
  3. {
  4. Menu(Context* context);
  5. virtual ~Menu();
  6. void SetPopup(UIElement* element);
  7. void SetPopupOffset(const IntVector2& offset);
  8. void SetPopupOffset(int x, int y);
  9. void ShowPopup(bool enable);
  10. void SetAccelerator(int key, int qualifiers);
  11. UIElement* GetPopup() const;
  12. const IntVector2& GetPopupOffset() const;
  13. bool GetShowPopup() const;
  14. int GetAcceleratorKey() const;
  15. int GetAcceleratorQualifiers() const;
  16. tolua_property__get_set UIElement* popup;
  17. tolua_property__get_set IntVector2& popupOffset;
  18. tolua_property__get_set bool showPopup;
  19. tolua_readonly tolua_property__get_set int acceleratorKey;
  20. tolua_readonly tolua_property__get_set int acceleratorQualifiers;
  21. };
  22. $#define SetShowPopup ShowPopup