An object that represents a graphics context.
Definition GraphicsContext.hpp:45
Base template for the event class.
Definition Event.hpp:27
An object that coordinates the layout and display of text characters.
Definition TextLayoutManager.hpp:74
A definition of the fundamental behavior for controls, which are specialized views that notify your a...
Definition UIControl.hpp:30
Definition UITextField.hpp:17
void setFont(HFont font)
The font to be used when rendering the text field.
String mText
The text currently shown in the text field.
Definition UITextField.hpp:20
static const UIColorAppearanceProperty innerBorderColorProperty
Definition UITextField.hpp:76
TextLayoutManager mLayoutManager
The manager that layouts text on the text field.
Definition UITextField.hpp:26
void setText(const String &text)
The text currently shown in the text field.
UITextField(const UIRect &frame)
Definition UITextField.hpp:35
HFont mFont
The font to be used when rendering the text field.
Definition UITextField.hpp:23
static const UIColorAppearanceProperty backgroundColorProperty
Definition UITextField.hpp:75
bool needsPanelToBecomeKey() const override
The default value of this property is false.
Definition UITextField.hpp:54
static const UIColorAppearanceProperty highlightColorProperty
Definition UITextField.hpp:77
static const UIColorAppearanceProperty borderColorProperty
Definition UITextField.hpp:74
const HFont & getFont() const
The font to be used when rendering the text field.
Definition UITextField.hpp:47
UITextField(const UIRect &frame, const String &text)
void layoutSubviews() override
Lays out subviews.
UITextField(const String &text)
Definition UITextField.hpp:34
void draw(UIGraphicsContext &context, const UIRect &dirtyRect) override
Displays the view and all its subviews if possible.
UISize getIntrinsicContentSize() const override
The natural size for the receiving view, considering only properties of the view itself.
Event< void(const String &)> didChangeValue
A signal dispatched by the button whenever the user clicks it.
Definition UITextField.hpp:30
void updateTextLayout()
Called internally whenever the text layout needs to be updated.
void keyDown(const UIKeyEvent &event) override
Informs the receiver that the user has pressed a key.
UITextField()
Definition UITextField.hpp:33
const String & getText() const
The text currently shown in the text field.
Definition UITextField.hpp:41
static const UIRect kDefaultFrame
A rectangle that represents the default frame set by a view without an explicit frame.
Definition UIView.hpp:296
Definition Application.hpp:19
Size2 UISize
A type that contains width and height values.
Definition UIUtility.hpp:30
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
A UI appearance property that returns a color.
Definition UIAppearance.hpp:30
Definition UIEvent.hpp:129