31 #include "../View/view.h"
32 #include "../../Display/Font/font.h"
33 #include "../../Core/Math/color.h"
57 class LabelBaseViewImpl;
83 std::shared_ptr<LabelBaseViewImpl> impl;
TextAlignment text_alignment() const
float calculate_first_baseline_offset(const CanvasPtr &canvas, float width) override
Calculates the offset to the first baseline.
void render_content(const CanvasPtr &canvas) override
Renders the content of a view.
LineBreakMode line_break_mode() const
Definition: label_view.h:59
void layout_children(const CanvasPtr &canvas) override
Sets the view geometry for all children of this view.
void set_line_break_mode(LineBreakMode value)
LineBreakMode
Definition: label_view.h:47
TextAlignment
Definition: label_view.h:37
float calculate_last_baseline_offset(const CanvasPtr &canvas, float width) override
Calculates the offset to the last baseline.
float calculate_preferred_height(const CanvasPtr &canvas, float width) override
Calculates the preferred height of this view.
void set_text(const std::string &value)
View for an area of the user interface.
Definition: view.h:68
void set_text_alignment(TextAlignment alignment)
float calculate_preferred_width(const CanvasPtr &canvas) override
Calculates the preferred width of this view.
std::shared_ptr< Canvas > CanvasPtr
Definition: canvas.h:126
Definition: Application/application.h:35