Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
std::equal_to< impeller::SubpixelGlyph > 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 96 of file font_glyph_pair.h.

Member Function Documentation

◆ operator()()

constexpr bool std::equal_to< impeller::SubpixelGlyph >::operator() ( const impeller::SubpixelGlyph lhs,
const impeller::SubpixelGlyph rhs 
) const
inlineconstexpr

Definition at line 97 of file font_glyph_pair.h.

98 {
99 return lhs.glyph.index == rhs.glyph.index &&
100 lhs.glyph.type == rhs.glyph.type &&
101 lhs.subpixel_offset == rhs.subpixel_offset &&
102 lhs.properties.color.ToARGB() == rhs.properties.color.ToARGB() &&
103 lhs.properties.stroke == rhs.properties.stroke &&
108 }
constexpr uint32_t ToARGB() const
Convert to ARGB 32 bit color.
Definition: color.h:261
uint16_t index
Definition: glyph.h:22
Type type
Whether the glyph is a path or a bitmap.
Definition: glyph.h:27
GlyphProperties properties

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