Kanzi  3.9.9
Kanzi Engine C++ 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

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

Member Function Documentation

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

Member Data Documentation

float kanzi::GlyphCache::TextureCoordinates::left

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

float kanzi::GlyphCache::TextureCoordinates::top

Texture coordinate for the top border of the glyph.

float kanzi::GlyphCache::TextureCoordinates::right

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

float kanzi::GlyphCache::TextureCoordinates::bottom

Texture coordinate for the bottom border of the glyph.

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: