6#include "TTauri/Cells/Cell.hpp"
7#include "TTauri/Text/ShapedText.hpp"
8#include "TTauri/Text/TextStyle.hpp"
26 void draw(
DrawContext const &drawContext,
aarect rectangle, Alignment alignment,
float middle) const noexcept override;
Definition TextCell.hpp:13
void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override
Draw the cell.
float heightForWidth(float width) const noexcept override
Get the height to draw this cell for the given width.
vec preferredExtent() const noexcept override
Return the extent that this cell wants to be drawn as.
Class which represents an axis-aligned rectangle.
Definition aarect.hpp:13
A 4D vector.
Definition vec.hpp:37
Draw context for drawing using the TTauri shaders.
Definition DrawContext.hpp:30
ShapedText represent a piece of text shaped to be displayed.
Definition ShapedText.hpp:21
Definition TextStyle.hpp:15