FastUIDraw
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
fastuidraw::GlyphRenderer Class Reference

Specifies how to render a glyph. More...

#include <glyph_renderer.hpp>

Public Member Functions

 GlyphRenderer (int pixel_size)
 
 GlyphRenderer (enum glyph_type t)
 
 GlyphRenderer (void)
 
bool operator< (const GlyphRenderer &rhs) const
 
bool operator== (const GlyphRenderer &rhs) const
 
bool valid (void) const
 

Static Public Member Functions

static bool scalable (enum glyph_type tp)
 

Public Attributes

int m_pixel_size
 
enum glyph_type m_type
 

Detailed Description

Specifies how to render a glyph.

Definition at line 87 of file glyph_renderer.hpp.

Constructor & Destructor Documentation

◆ GlyphRenderer() [1/3]

fastuidraw::GlyphRenderer::GlyphRenderer ( int  pixel_size)
explicit

Ctor. Initializes m_type as coverage_glyph

Parameters
pixel_sizevalue to which to initialize m_pixel_size

◆ GlyphRenderer() [2/3]

fastuidraw::GlyphRenderer::GlyphRenderer ( enum glyph_type  t)
explicit

Ctor.

Parameters
tvalue to which to initialize m_type, value must be so that scalable() returns true

◆ GlyphRenderer() [3/3]

fastuidraw::GlyphRenderer::GlyphRenderer ( void  )

Ctor. Initializes m_type to invalid_glyph (which is the same value as adaptive_rendering).

Member Function Documentation

◆ operator<()

bool fastuidraw::GlyphRenderer::operator< ( const GlyphRenderer rhs) const

Comparison operator.

Parameters
rhsvalue to which to compare against

◆ operator==()

bool fastuidraw::GlyphRenderer::operator== ( const GlyphRenderer rhs) const

Comparison operator.

Parameters
rhsvalue to which to compare against

◆ scalable()

static bool fastuidraw::GlyphRenderer::scalable ( enum glyph_type  tp)
static

Returns true if and only if the data for a glyph type is scalable, for example distance_field_glyph and restricted_rays_glyph are scalable

◆ valid()

bool fastuidraw::GlyphRenderer::valid ( void  ) const

Returns true if and only if this GlyphRenderer is valid to specify how to render a glyph.

Member Data Documentation

◆ m_pixel_size

int fastuidraw::GlyphRenderer::m_pixel_size

Pixel size observed only if scalable() when passed m_type returns false.

Definition at line 120 of file glyph_renderer.hpp.

◆ m_type

enum glyph_type fastuidraw::GlyphRenderer::m_type

How to render glyph.

Definition at line 114 of file glyph_renderer.hpp.


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