menu-bar.hpp 447 B

123456789101112131415161718192021222324
  1. #if defined(Hiro_MenuBar)
  2. namespace hiro {
  3. struct pMenuBar : pObject {
  4. Declare(MenuBar, Object)
  5. auto append(sMenu menu) -> void;
  6. auto remove(sMenu menu) -> void;
  7. auto setEnabled(bool enabled) -> void override;
  8. auto setFont(const Font& font) -> void override;
  9. auto setVisible(bool visible) -> void override;
  10. auto _parent() -> maybe<pWindow&>;
  11. auto _update() -> void;
  12. HMENU hmenu = 0;
  13. vector<wObject> objects;
  14. };
  15. }
  16. #endif