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

Public Types

using super = image_stencil
 
- Public Types inherited from tt::image_stencil
using super = stencil
 

Public Member Functions

 glyph_stencil (alignment alignment, font_glyph_ids glyph) noexcept
 
void draw (draw_context context, tt::color color, matrix3 transform) noexcept override
 Draw the cell.
 
- Public Member Functions inherited from tt::image_stencil
 image_stencil (alignment alignment)
 
- 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 extent2 preferred_extent () noexcept
 Return the extent that this cell wants to be drawn as.
 
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::glyph_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.


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