button.hpp 627 B

1234567891011121314151617181920212223242526
  1. #if defined(Hiro_Button)
  2. namespace hiro {
  3. struct pButton : pWidget {
  4. Declare(Button, Widget)
  5. auto minimumSize() const -> Size override;
  6. auto setBordered(bool bordered) -> void;
  7. auto setEnabled(bool enabled) -> void override;
  8. auto setFont(const Font& font) -> void override;
  9. auto setIcon(const image& icon) -> void;
  10. auto setOrientation(Orientation orientation) -> void;
  11. auto setText(const string& text) -> void;
  12. auto setVisible(bool visible) -> void override;
  13. auto onActivate() -> void;
  14. auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT> override;
  15. auto _setState() -> void;
  16. };
  17. }
  18. #endif