Scoped connection class.
Definition Event.hpp:104
An object that represents a graphics context.
Definition GraphicsContext.hpp:45
An object that coordinates the layout and display of text characters.
Definition TextLayoutManager.hpp:74
Definition UILabel.hpp:17
void setFont(const HFont &font)
void setTextColor(const UIColor &textColor)
UISize getIntrinsicContentSize() const override
The natural size for the receiving view, considering only properties of the view itself.
UIColor mTextColor
The color of the text.
Definition UILabel.hpp:25
const UIColor & getTextColor() const
Definition UILabel.hpp:52
void setText(const String &text)
void draw(UIGraphicsContext &context, const UIRect &dirtyRect) override
Displays the view and all its subviews if possible.
const String & getText() const
Definition UILabel.hpp:46
const HFont & getFont() const
Definition UILabel.hpp:64
EventConnection mFontLoadedEvent
Definition UILabel.hpp:37
HFont mFont
The font to render the label with.
Definition UILabel.hpp:31
const UITextAlignment & getTextAlignment() const
Definition UILabel.hpp:58
void setTextAlignment(const UITextAlignment &textAlignment)
UILabel(const String &text)
String mText
The text that the label is displaying.
Definition UILabel.hpp:22
UITextAlignment mTextAlignment
The technique to use for aligning the text.
Definition UILabel.hpp:28
TextLayoutManager mLayoutManager
The text layout manager.
Definition UILabel.hpp:34
void layoutSubviews() override
Lays out subviews.
The infrastructure for drawing and handling events in a UI.
Definition UIView.hpp:153
Definition Application.hpp:19
Color UIColor
Definition UIUtility.hpp:187
Size2 UISize
A type that contains width and height values.
Definition UIUtility.hpp:30
UITextAlignment
These constants specify text alignment.
Definition UIUtility.hpp:100
@ Left
Text is visually left aligned.
Rect2 UIRect
A structure that contains the location and dimensions of a rectangle.
Definition UIUtility.hpp:33
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25