31 #include "../View/view.h" 32 #include "../../Display/Font/font.h" 33 #include "../../Display/2D/color.h" 82 std::shared_ptr<LabelViewImpl> impl;
LineBreakMode
Definition: label_view.h:47
View for an area of the user interface.
Definition: view.h:61
float get_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.
2D Graphics Canvas
Definition: canvas.h:72
void set_text_alignment(TextAlignment alignment)
float get_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
float get_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
Definition: label_view.h:59
void render_content(Canvas &canvas) override
Renders the content of a view.
float get_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.
void set_text(const std::string &value)
LineBreakMode line_break_mode() const
void set_line_break_mode(LineBreakMode value)
void layout_subviews(Canvas &canvas) override
Sets the view geometry for all subviews of this view.
TextAlignment text_alignment() const
TextAlignment
Definition: label_view.h:37