7#include "../geometry/axis_aligned_rectangle.hpp"
18 _alignment(alignment), _data_is_modified(
true), _size_is_modified(
true), _position_is_modified(
true)
43 _size_is_modified =
true;
45 if (get<0>(_rectangle) != get<0>(
rectangle) || _base_line_position != base_line_position) {
46 _position_is_modified =
true;
64 make_unique(alignment alignment, std::u8string
const &text,
text_style const &style);
72 float _base_line_position;
76 bool _data_is_modified;
77 bool _size_is_modified;
78 bool _position_is_modified;
This is a RGBA floating point color.
Definition color.hpp:39
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:18
extent2 extent() const noexcept
Get size of the rectangle.
Definition axis_aligned_rectangle.hpp:157
Definition identity.hpp:11
Class which represents an rectangle.
Definition rectangle.hpp:16
Draw context for drawing using the TTauri shaders.
Definition draw_context.hpp:33
An image, in different formats.
Definition icon.hpp:19
A localized text + icon label.
Definition label.hpp:76
Definition stencil.hpp:15
virtual void set_layout_parameters(aarectangle const &rectangle, float base_line_position=std::numeric_limits< float >::infinity()) noexcept
Pass layout parameters in local coordinates.
Definition stencil.hpp:40
virtual extent2 preferred_extent() noexcept
Return the extent that this cell wants to be drawn as.
Definition stencil.hpp:30
virtual void draw(draw_context context, tt::color color=tt::color{}, matrix3 transform=geo::identity()) noexcept=0
Draw the cell.
Definition text_style.hpp:16