Menu.pkg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $#include "Menu.h"
  2. class Menu : public Button
  3. {
  4. Menu();
  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. ${
  23. #define TOLUA_DISABLE_tolua_UILuaAPI_Menu_new00
  24. static int tolua_UILuaAPI_Menu_new00(lua_State* tolua_S)
  25. {
  26. return ToluaNewObject<Menu>(tolua_S);
  27. }
  28. #define TOLUA_DISABLE_tolua_UILuaAPI_Menu_new00_local
  29. static int tolua_UILuaAPI_Menu_new00_local(lua_State* tolua_S)
  30. {
  31. return ToluaNewObjectGC<Menu>(tolua_S);
  32. }
  33. #define SetShowPopup ShowPopup
  34. $}