| Flutter Impeller |

Public Member Functions | List of all members
std::hash< impeller::SubpixelGlyph > 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 85 of file font_glyph_pair.h.

## Member Function Documentation

## ◆ operator()()

constexpr std::size_t std::hash< impeller::SubpixelGlyph >::operator() | ( | const impeller::SubpixelGlyph & | sg | ) | const
| inline constexpr

Definition at line 86 of file font_glyph_pair.h.

86 {
87 return fml::HashCombine(
88 sg.glyph.index, sg.subpixel_offset.x, sg.subpixel_offset.y,
89 sg.properties.color.ToARGB(), sg.properties.stroke,
90 sg.properties.stroke_cap, sg.properties.stroke_join,
91 sg.properties.stroke_miter, sg.properties.stroke_width);
92 }

References impeller::GlyphProperties::color, impeller::SubpixelGlyph::glyph, impeller::Glyph::index, impeller::SubpixelGlyph::properties, impeller::GlyphProperties::stroke, impeller::GlyphProperties::stroke_cap, impeller::GlyphProperties::stroke_join, impeller::GlyphProperties::stroke_miter, impeller::GlyphProperties::stroke_width, impeller::SubpixelGlyph::subpixel_offset, impeller::Color::ToARGB(), 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:42
impeller::Color::ToARGB
constexpr uint32_t ToARGB() const
Convert to ARGB 32 bit color.
Definition: color.h:261
impeller::GlyphProperties::stroke_miter
Scalar stroke_miter
Definition: font_glyph_pair.h:24
impeller::GlyphProperties::color
Color color
Definition: font_glyph_pair.h:20
impeller::SubpixelGlyph::glyph
Glyph glyph
Definition: font_glyph_pair.h:41
impeller::SubpixelGlyph::properties
GlyphProperties properties
Definition: font_glyph_pair.h:43
impeller::GlyphProperties::stroke_join
Join stroke_join
Definition: font_glyph_pair.h:23
impeller::Glyph::index
uint16_t index
Definition: glyph.h:22
impeller::GlyphProperties::stroke
bool stroke
Definition: font_glyph_pair.h:25
impeller::TPoint::x
Type x
Definition: point.h:30
impeller::GlyphProperties::stroke_width
Scalar stroke_width
Definition: font_glyph_pair.h:21
impeller::GlyphProperties::stroke_cap
Cap stroke_cap
Definition: font_glyph_pair.h:22