| 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 50 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 51 of file glyph.h.

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

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:26
impeller::Glyph::type
Type type
Whether the glyph is a path or a bitmap.
Definition: glyph.h:31