Flutter Impeller
impeller::SubpixelGlyph Struct Reference

A glyph and its subpixel position. More...

#include <font_glyph_pair.h>

Classes

struct  Equal
 

Public Member Functions

 SubpixelGlyph (Glyph p_glyph, SubpixelPosition p_subpixel_offset, GlyphProperties p_properties)
 

Public Attributes

Glyph glyph
 
SubpixelPosition subpixel_offset
 
GlyphProperties properties
 

Friends

template<typename H >
H AbslHashValue (H h, const SubpixelGlyph &sg)
 

Detailed Description

A glyph and its subpixel position.

Definition at line 118 of file font_glyph_pair.h.

Constructor & Destructor Documentation

◆ SubpixelGlyph()

impeller::SubpixelGlyph::SubpixelGlyph ( Glyph  p_glyph,
SubpixelPosition  p_subpixel_offset,
GlyphProperties  p_properties 
)
inline

Definition at line 123 of file font_glyph_pair.h.

126  : glyph(p_glyph),
127  subpixel_offset(p_subpixel_offset),
128  properties(p_properties) {}
SubpixelPosition subpixel_offset
GlyphProperties properties

Friends And Related Function Documentation

◆ AbslHashValue

template<typename H >
H AbslHashValue ( H  h,
const SubpixelGlyph &  sg 
)
friend

Definition at line 131 of file font_glyph_pair.h.

131  {
132  StrokeParameters stroke;
133  bool has_stroke = sg.properties.stroke.has_value();
134  if (has_stroke) {
135  stroke = sg.properties.stroke.value();
136  }
137  return H::combine(std::move(h), sg.glyph.index, sg.subpixel_offset,
138  sg.properties.tone_or_color, has_stroke, stroke.cap,
139  stroke.join, stroke.miter_limit, stroke.width);
140  }

Member Data Documentation

◆ glyph

◆ properties

◆ subpixel_offset

SubpixelPosition impeller::SubpixelGlyph::subpixel_offset

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