|
HikoGUI
A low latency retained GUI
|
#include <hikogui/text/glyph_ids.hpp>
Public Member Functions | |
| constexpr | glyph_ids (glyph_ids const &other) noexcept |
| constexpr glyph_ids & | operator= (glyph_ids const &other) noexcept |
| constexpr | glyph_ids (glyph_ids &&other) noexcept |
| constexpr glyph_ids & | operator= (glyph_ids &&other) noexcept |
| constexpr | glyph_ids () noexcept |
| Create an empty glyph_ids object. | |
| constexpr | glyph_ids (hi::font const &font) noexcept |
| Create an empty glyph_ids for a font. | |
| constexpr font const & | font () const noexcept |
| Get the font for this glyph_ids object. | |
| void | set_font (hi::font const &font) noexcept |
| Set the font for this glyph_ids object. | |
| constexpr void | clear () noexcept |
| Clear the glyphs in this glyph_ids object. | |
| constexpr bool | empty () const noexcept |
| Check if glyphs are attached. | |
| constexpr | operator bool () const noexcept |
| Check if glyphs are attached. | |
| template<std::size_t N> | |
| constexpr bool | has_num_glyphs () const noexcept |
| Check if this object contains a number of glyphs. | |
| constexpr glyph_id | get_single () const noexcept |
| Get the value of the single glyph. | |
| constexpr std::size_t | num_glyphs () const noexcept |
| Get the number of glyphs. | |
| constexpr std::size_t | num_graphemes () const noexcept |
| constexpr void | set_num_graphemes (std::size_t num_graphemes) noexcept |
| constexpr std::size_t | hash () const noexcept |
| Get the hash value. | |
| constexpr glyph_ids & | operator+= (glyph_id id) noexcept |
| Add a glyph to this object. | |
| constexpr glyph_id | operator[] (std::size_t index) const noexcept |
| Get a glyph. | |
| glyph_atlas_info & | atlas_info () const noexcept |
| Get information where the glyph is drawn in the atlas. | |
| std::pair< graphic_path, aarectangle > | get_path_and_bounding_box () const noexcept |
| Get the bounding box and the graphical path of the combined glyphs. | |
| aarectangle | get_bounding_box () const noexcept |
| Get the bounding box of the combined glyphs. | |
Friends | |
| template<std::size_t I> | |
| constexpr friend glyph_id | get (glyph_ids const &rhs) noexcept |
| constexpr friend bool | operator== (glyph_ids const &lhs, glyph_ids const &rhs) noexcept |
A set of glyph-ids of a font which composites into a single glyph.
The normal operation for getting a glyph-ids is by:
|
inlineconstexprnoexcept |
Create an empty glyph_ids object.
This constructor should only be used for default member initialization. Normally the font should always be assigned.
|
inlineconstexprnoexcept |
|
noexcept |
Get information where the glyph is drawn in the atlas.
|
inlineconstexprnoexcept |
Clear the glyphs in this glyph_ids object.
The font remains attached to this object.
|
inlineconstexprnoexcept |
Check if glyphs are attached.
|
inlineconstexprnoexcept |
Get the font for this glyph_ids object.
|
noexcept |
Get the bounding box of the combined glyphs.
The unit of the values are in: em.
|
noexcept |
Get the bounding box and the graphical path of the combined glyphs.
The unit of the values are in: em.
|
inlineconstexprnoexcept |
Get the value of the single glyph.
|
inlineconstexprnoexcept |
Check if this object contains a number of glyphs.
A single glyph may represent 1 or more graphemes.
| N | The number of glyphs to check, must fit in a short glyph. |
|
inlineconstexprnoexcept |
Get the hash value.
|
inlineconstexprnoexcept |
Get the number of glyphs.
|
inlineconstexprnoexcept |
Check if glyphs are attached.
Add a glyph to this object.
| id | The glyph to add. |
|
inlineconstexprnoexcept |
Get a glyph.
| index | The index to the glyph to access |
|
inlinenoexcept |
Set the font for this glyph_ids object.