|
|
| TextCell (std::string_view text, TextStyle style) noexcept |
| |
|
| TextCell (std::string text, TextStyle style) noexcept |
| |
| vec | preferredExtent () const noexcept override |
| | Return the extent that this cell wants to be drawn as.
|
| |
| float | heightForWidth (float width) const noexcept override |
| | Get the height to draw this cell for the given width.
|
| |
| void | draw (DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override |
| | Draw the cell.
|
| |
|
| Cell (Cell const &) noexcept=delete |
| |
|
| Cell (Cell &&) noexcept=delete |
| |
|
Cell & | operator= (Cell const &) noexcept=delete |
| |
|
Cell & | operator= (Cell &&) noexcept=delete |
| |
◆ draw()
| void tt::TextCell::draw |
( |
DrawContext const & | drawContext, |
|
|
aarect | rectangle, |
|
|
Alignment | alignment, |
|
|
float | middle ) const |
|
overridevirtualnoexcept |
Draw the cell.
- Parameters
-
| drawContext | The current draw context. |
| rectangle | The position and size of the image. |
| alignment | The alignment within the rectangle. |
| middle | The height of the middle of the line of text. |
Implements tt::Cell.
◆ heightForWidth()
| float tt::TextCell::heightForWidth |
( |
float | width | ) |
const |
|
overridevirtualnoexcept |
Get the height to draw this cell for the given width.
Reimplemented from tt::Cell.
◆ preferredExtent()
| vec tt::TextCell::preferredExtent |
( |
| ) |
const |
|
overridevirtualnoexcept |
Return the extent that this cell wants to be drawn as.
Reimplemented from tt::Cell.
The documentation for this class was generated from the following file: