UIMenuWindow.h 510 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <TurboBadger/tb_select_item.h>
  3. #include "UIWidget.h"
  4. namespace Atomic
  5. {
  6. class UISelectItemSource;
  7. class UIMenuWindow : public UIWidget
  8. {
  9. OBJECT(UIMenuWindow)
  10. public:
  11. UIMenuWindow(Context* context, UIWidget* target, const String& id);
  12. virtual ~UIMenuWindow();
  13. void Show(UISelectItemSource* source, int x = -1, int y = -1);
  14. void Close();
  15. protected:
  16. virtual bool OnEvent(const tb::TBWidgetEvent &ev);
  17. private:
  18. tb::TBSelectItemSource* source_;
  19. };
  20. }