|
HikoGUI
A low latency retained GUI
|
Public Member Functions | |
| stencil (alignment alignment) | |
| stencil (stencil const &) noexcept=delete | |
| stencil (stencil &&) noexcept=delete | |
| stencil & | operator= (stencil const &) noexcept=delete |
| stencil & | operator= (stencil &&) noexcept=delete |
| virtual f32x4 | preferred_extent () noexcept |
| Return the extent that this cell wants to be drawn as. | |
| virtual void | set_layout_parameters (aarect const &rectangle, float base_line_position=std::numeric_limits< float >::infinity()) noexcept |
| Pass layout parameters in local coordinates. | |
| virtual void | draw (draw_context context, bool use_context_color=false) noexcept=0 |
| Draw the cell. | |
Static Public Member Functions | |
| static std::unique_ptr< class image_stencil > | make_unique (alignment alignment, icon const &icon) |
| static std::unique_ptr< class text_stencil > | make_unique (alignment alignment, std::u8string const &text, text_style const &style) |
| static std::unique_ptr< class label_stencil > | make_unique (alignment alignment, tt::label const &label, text_style const &style) |
|
pure virtualnoexcept |
Draw the cell.
| context | The current draw context. |
| use_context_color | True to use the colors in the context, False to use the colors in the cell itself. |
Implemented in tt::glyph_stencil, tt::label_stencil, tt::pixel_map_stencil, and tt::text_stencil.
|
inlinevirtualnoexcept |
Return the extent that this cell wants to be drawn as.
Reimplemented in tt::label_stencil, and tt::text_stencil.
|
inlinevirtualnoexcept |
Pass layout parameters in local coordinates.
| rectangle | The rectangle the stencil will be drawn into. |
| base_line_position | The position of the base line within the rectangle. |
Reimplemented in tt::label_stencil.