HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions
tt::text_stencil Class Reference
Inheritance diagram for tt::text_stencil:
tt::stencil

Public Types

using super = stencil
 

Public Member Functions

 text_stencil (alignment alignment, std::u8string_view text, text_style style) noexcept
 
 text_stencil (alignment alignment, std::u8string text, text_style style) noexcept
 
extent2 preferred_extent () noexcept override
 Return the extent that this cell wants to be drawn as.
 
void draw (draw_context context, tt::color color, matrix3 transform) noexcept override
 Draw the cell.
 
- Public Member Functions inherited from tt::stencil
 stencil (alignment alignment)
 
 stencil (stencil const &) noexcept=delete
 
 stencil (stencil &&) noexcept=delete
 
stenciloperator= (stencil const &) noexcept=delete
 
stenciloperator= (stencil &&) noexcept=delete
 
virtual void set_layout_parameters (aarectangle const &rectangle, float base_line_position=std::numeric_limits< float >::infinity()) noexcept
 Pass layout parameters in local coordinates.
 

Additional Inherited Members

- Static Public Member Functions inherited from tt::stencil
static std::unique_ptr< class image_stencilmake_unique (alignment alignment, icon const &icon)
 
static std::unique_ptr< class text_stencilmake_unique (alignment alignment, std::u8string const &text, text_style const &style)
 
static std::unique_ptr< class label_stencilmake_unique (alignment alignment, tt::label const &label, text_style const &style)
 

Member Function Documentation

◆ draw()

void tt::text_stencil::draw ( draw_context context,
tt::color color,
matrix3 transform )
overridevirtualnoexcept

Draw the cell.

Parameters
contextThe current draw context.
colorThe color to use for drawing.

Implements tt::stencil.

◆ preferred_extent()

extent2 tt::text_stencil::preferred_extent ( )
overridevirtualnoexcept

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

Reimplemented from tt::stencil.


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