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

Public Member Functions

 Cell (Cell const &) noexcept=delete
 
 Cell (Cell &&) noexcept=delete
 
Celloperator= (Cell const &) noexcept=delete
 
Celloperator= (Cell &&) noexcept=delete
 
virtual vec preferredExtent () const noexcept
 Return the extent that this cell wants to be drawn as.
 
virtual float heightForWidth (float width) const noexcept
 Get the height to draw this cell for the given width.
 
virtual void draw (DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle=std::numeric_limits< float >::max()) const noexcept=0
 Draw the cell.
 

Member Function Documentation

◆ draw()

virtual void tt::Cell::draw ( DrawContext const & drawContext,
aarect rectangle,
Alignment alignment,
float middle = std::numeric_limits< float >::max() ) const
pure virtualnoexcept

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.

Implemented in tt::GlyphCell, tt::PixelMapCell, and tt::TextCell.

◆ heightForWidth()

virtual float tt::Cell::heightForWidth ( float width) const
inlinevirtualnoexcept

Get the height to draw this cell for the given width.

Reimplemented in tt::TextCell.

◆ preferredExtent()

virtual vec tt::Cell::preferredExtent ( ) const
inlinevirtualnoexcept

Return the extent that this cell wants to be drawn as.

Reimplemented in tt::TextCell.


The documentation for this class was generated from the following file: