| Flutter Impeller |

Public Member Functions | List of all members
std::hash< impeller::Glyph > Struct Reference

`#include <glyph.h>`

## Public Member Functions
constexpr std::size_t | operator() (const impeller::Glyph &g) const

## Detailed Description

Definition at line 49 of file glyph.h.

## Member Function Documentation

## ◆ operator()()

constexpr std::size_t std::hash< impeller::Glyph >::operator() | ( | const impeller::Glyph & | g | ) | const
| inline constexpr

Definition at line 50 of file glyph.h.

50 {
51 static_assert(sizeof(g.index) == 2);
52 static_assert(sizeof(g.type) == 1);
53 return (static_cast<size_t>(g.type) << 16) | g.index;
54 }

References impeller::Glyph::index, and impeller::Glyph::type.

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

- impeller/typographer/glyph.h

impeller::Glyph::index
uint16_t index
Definition: glyph.h:25
impeller::Glyph::type
Type type
Whether the glyph is a path or a bitmap.
Definition: glyph.h:30