hiro/qt/widget/label.hpp
raw| 1 | #if defined(Hiro_Label) |
| 2 | |
| 3 | namespace hiro { |
| 4 | |
| 5 | struct pLabel : pWidget { |
| 6 | Declare(Label, Widget) |
| 7 | |
| 8 | auto minimumSize() const -> Size override; |
| 9 | auto setAlignment(Alignment alignment) -> void; |
| 10 | auto setBackgroundColor(Color color) -> void; |
| 11 | auto setFont(const Font& font) -> void override; |
| 12 | auto setForegroundColor(Color color) -> void; |
| 13 | auto setText(const string& text) -> void; |
| 14 | |
| 15 | QtLabel* qtLabel = nullptr; |
| 16 | }; |
| 17 | |
| 18 | } |
| 19 | |
| 20 | #endif |