Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
inlineconstexpr

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

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