Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::SubpixelGlyph::Equal Struct Reference

#include <font_glyph_pair.h>

Public Member Functions

constexpr bool operator() (const impeller::SubpixelGlyph &lhs, const impeller::SubpixelGlyph &rhs) const
 

Detailed Description

Definition at line 142 of file font_glyph_pair.h.

Member Function Documentation

◆ operator()()

constexpr bool impeller::SubpixelGlyph::Equal::operator() ( const impeller::SubpixelGlyph lhs,
const impeller::SubpixelGlyph rhs 
) const
inlineconstexpr

Definition at line 143 of file font_glyph_pair.h.

144 {
145 // Check simple non-optionals first.
146 if (lhs.glyph.index != rhs.glyph.index ||
147 lhs.glyph.type != rhs.glyph.type ||
148 lhs.subpixel_offset != rhs.subpixel_offset) {
149 return false;
150 }
151 return GlyphProperties::Equal{}(lhs.properties, rhs.properties);
152 }
uint16_t index
Definition glyph.h:22
Type type
Whether the glyph is a path or a bitmap.
Definition glyph.h:27
SubpixelPosition subpixel_offset

References impeller::SubpixelGlyph::glyph, impeller::Glyph::index, impeller::SubpixelGlyph::properties, impeller::SubpixelGlyph::subpixel_offset, and impeller::Glyph::type.


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