menu.hpp 344 B

123456789101112131415161718192021
  1. #if defined(Hiro_Menu)
  2. namespace hiro {
  3. struct pMenu : public pAction {
  4. Declare(Menu, Action)
  5. auto append(sAction action) -> void;
  6. auto remove(sAction action) -> void;
  7. auto setIcon(const image& icon) -> void;
  8. auto setText(const string& text) -> void;
  9. auto _setState() -> void override;
  10. QMenu* qtMenu = nullptr;
  11. };
  12. }
  13. #endif