31 #include "../View/view.h"
32 #include "../../Display/Font/font.h"
33 #include "../../Display/2D/color.h"
82 std::shared_ptr<LabelViewImpl> impl;
float get_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
float get_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
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_alignment(TextAlignment alignment)
Definition: label_view.h:60
2D Graphics Canvas
Definition: canvas.h:73
LineBreakMode line_break_mode() const
TextAlignment
Definition: label_view.h:38
void set_line_break_mode(LineBreakMode value)
View for an area of the user interface.
Definition: view.h:62
void set_text(const std::string &value)
void layout_subviews(Canvas &canvas) override
Sets the view geometry for all subviews of this view.
TextAlignment text_alignment() const
LineBreakMode
Definition: label_view.h:48
float get_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.