label.hpp 419 B

1234567891011121314151617181920
  1. #if defined(Hiro_Label)
  2. namespace hiro {
  3. struct pLabel : pWidget {
  4. Declare(Label, Widget)
  5. auto minimumSize() const -> Size override;
  6. auto setAlignment(Alignment alignment) -> void;
  7. auto setBackgroundColor(Color color) -> void;
  8. auto setForegroundColor(Color color) -> void;
  9. auto setText(const string& text) -> void;
  10. auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT> override;
  11. };
  12. }
  13. #endif