Flutter Impeller
impeller::Glyph Struct Reference

The glyph index in the typeface. More...

#include <glyph.h>

Public Types

enum class  Type : uint8_t {
  kPath ,
  kBitmap
}
 

Public Member Functions

 Glyph (uint16_t p_index, Type p_type)
 

Public Attributes

uint16_t index = 0
 
Type type = Type::kPath
 Whether the glyph is a path or a bitmap. More...
 

Detailed Description

The glyph index in the typeface.

Definition at line 16 of file glyph.h.

Member Enumeration Documentation

◆ Type

enum impeller::Glyph::Type : uint8_t
strong
Enumerator
kPath 
kBitmap 

Definition at line 17 of file glyph.h.

17  : uint8_t {
18  kPath,
19  kBitmap,
20  };

Constructor & Destructor Documentation

◆ Glyph()

impeller::Glyph::Glyph ( uint16_t  p_index,
Type  p_type 
)
inline

Definition at line 29 of file glyph.h.

29 : index(p_index), type(p_type) {}
uint16_t index
Definition: glyph.h:22
Type type
Whether the glyph is a path or a bitmap.
Definition: glyph.h:27

Member Data Documentation

◆ index

◆ type

Type impeller::Glyph::type = Type::kPath

Whether the glyph is a path or a bitmap.

Definition at line 27 of file glyph.h.

Referenced by std::hash< impeller::Glyph >::operator()(), std::equal_to< impeller::Glyph >::operator()(), and impeller::SubpixelGlyph::Equal::operator()().


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