6#include "TTauri/GUI/Window_forward.hpp"
7#include "TTauri/Foundation/aarect.hpp"
16 mutable bool modified;
19 Cell() : modified(
true) {}
20 virtual ~Cell() =
default;
21 Cell(
Cell const &)
noexcept =
delete;
23 Cell &operator=(
Cell const &)
noexcept =
delete;
24 Cell &operator=(
Cell &&)
noexcept =
delete;
32 [[nodiscard]]
virtual float heightForWidth(
float width)
const noexcept {
return 0.0f; }
virtual vec preferredExtent() const noexcept
Return the extent that this cell wants to be drawn as.
Definition Cell.hpp:28
virtual float heightForWidth(float width) const noexcept
Get the height to draw this cell for the given width.
Definition Cell.hpp:32
virtual void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle=std::numeric_limits< float >::max()) const noexcept=0
Draw the cell.
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