32#include "../View/view.h"
33#include "../../Display/Font/font.h"
34#include "../../Display/2D/color.h"
73 void set_text(
const std::string &value,
bool force_no_layout =
false);
94 std::shared_ptr<LabelViewImpl> impl;
2D Graphics Canvas
Definition canvas.h:72
Definition label_view.h:61
void render_content(Canvas &canvas) override
Renders the content of a view.
void reset_font()
Update the font in according to style.
LineBreakMode line_break_mode() const
float calculate_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.
float calculate_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
void layout_children(Canvas &canvas) override
Sets the view geometry for all children of this view.
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.
void set_text_alignment(TextAlignment alignment)
float calculate_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
TextAlignment text_alignment() const
void set_line_break_mode(LineBreakMode value)
View for an area of the user interface.
Definition view.h:66
LineBreakMode
Definition label_view.h:49
TextAlignment
Definition label_view.h:39