| Flutter Impeller |

Public Member Functions | List of all members
impeller::SubpixelGlyph::Hash Struct Reference

`#include <font_glyph_pair.h>`

## Public Member Functions
constexpr std::size_t | operator() (const impeller::SubpixelGlyph &sg) const

## Detailed Description

Definition at line 66 of file font_glyph_pair.h.

## Member Function Documentation

## ◆ operator()()

constexpr std::size_t impeller::SubpixelGlyph::Hash::operator() | ( | const impeller::SubpixelGlyph & | sg | ) | const
| inlineconstexpr

Definition at line 67 of file font_glyph_pair.h.

67 {
68 if (!sg.properties.has_value()) {
69 return fml::HashCombine(sg.glyph.index, sg.subpixel_offset.x,
70 sg.subpixel_offset.y);
71 }
72 return fml::HashCombine(
73 sg.glyph.index, sg.subpixel_offset.x, sg.subpixel_offset.y,
74 sg.properties->color.ToARGB(), sg.properties->stroke,
75 sg.properties->stroke_cap, sg.properties->stroke_join,
76 sg.properties->stroke_miter, sg.properties->stroke_width);
77 }

References impeller::SubpixelGlyph::glyph, impeller::Glyph::index, impeller::SubpixelGlyph::properties, impeller::SubpixelGlyph::subpixel_offset, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.

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

- impeller/typographer/font_glyph_pair.h

impeller::TPoint::y
Type y
Definition: point.h:31
impeller::SubpixelGlyph::subpixel_offset
Point subpixel_offset
Definition: font_glyph_pair.h:56
impeller::SubpixelGlyph::properties
std::optional< GlyphProperties > properties
Definition: font_glyph_pair.h:57
impeller::SubpixelGlyph::glyph
Glyph glyph
Definition: font_glyph_pair.h:55
impeller::Glyph::index
uint16_t index
Definition: glyph.h:22
impeller::TPoint::x
Type x
Definition: point.h:30