HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::TextCell Class Reference
Inheritance diagram for tt::TextCell:
tt::Cell

Public Member Functions

 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.
 
- Public Member Functions inherited from tt::Cell
 Cell (Cell const &) noexcept=delete
 
 Cell (Cell &&) noexcept=delete
 
Celloperator= (Cell const &) noexcept=delete
 
Celloperator= (Cell &&) noexcept=delete
 

Member Function Documentation

◆ draw()

void tt::TextCell::draw ( DrawContext const & drawContext,
aarect rectangle,
Alignment alignment,
float middle ) const
overridevirtualnoexcept

Draw the cell.

Parameters
drawContextThe current draw context.
rectangleThe position and size of the image.
alignmentThe alignment within the rectangle.
middleThe 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: