Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::GlyphCache::TextureCoordinates Struct Reference

Coordinates to the position of a single glyph in a glyph cache texture. More...

#include <kanzi/core.ui/font/glyph_cache.hpp>

Public Member Functions

bool operator== (const TextureCoordinates &value) const
 
 TextureCoordinates ()=default
 

Public Attributes

float bottom
 Texture coordinate for the bottom border of the glyph. More...
 
float left
 Texture coordinate for the left-hand border of the glyph. More...
 
float right
 Texture coordinate for the right-hand border of the glyph. More...
 
bool success
 True if Kanzi successfully cached the glyph, false if recycling is not used and there is no more room in the glyph cache. More...
 
float top
 Texture coordinate for the top border of the glyph. More...
 

Detailed Description

Coordinates to the position of a single glyph in a glyph cache texture.

Constructor & Destructor Documentation

◆ TextureCoordinates()

kanzi::GlyphCache::TextureCoordinates::TextureCoordinates ( )
explicitdefault

Member Function Documentation

◆ operator==()

bool kanzi::GlyphCache::TextureCoordinates::operator== ( const TextureCoordinates value) const
inline

Member Data Documentation

◆ left

float kanzi::GlyphCache::TextureCoordinates::left

Texture coordinate for the left-hand border of the glyph.

◆ top

float kanzi::GlyphCache::TextureCoordinates::top

Texture coordinate for the top border of the glyph.

◆ right

float kanzi::GlyphCache::TextureCoordinates::right

Texture coordinate for the right-hand border of the glyph.

◆ bottom

float kanzi::GlyphCache::TextureCoordinates::bottom

Texture coordinate for the bottom border of the glyph.

◆ success

bool kanzi::GlyphCache::TextureCoordinates::success

True if Kanzi successfully cached the glyph, false if recycling is not used and there is no more room in the glyph cache.

If false, all coordinates are 0.0f.


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