32 #include "../View/view.h" 33 #include "../../Display/Font/font.h" 34 #include "../../Display/2D/color.h" 94 std::shared_ptr<LabelViewImpl> impl;
LineBreakMode
Definition: label_view.h:48
View for an area of the user interface.
Definition: view.h:65
2D Graphics Canvas
Definition: canvas.h:71
void layout_children(Canvas &canvas) override
Sets the view geometry for all children of this view.
float calculate_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.
void set_text_alignment(TextAlignment alignment)
Definition: label_view.h:60
void render_content(Canvas &canvas) override
Renders the content of a view.
LineBreakMode line_break_mode() const
void set_line_break_mode(LineBreakMode value)
float calculate_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
float calculate_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
TextAlignment text_alignment() const
TextAlignment
Definition: label_view.h:38
void reset_font()
Update the font in according to style.
void set_text(const std::string &value, bool force_no_layout=false)
Set text for display to the user.
float calculate_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.