| Flutter Impeller |

Public Member Functions | List of all members
impeller::GlyphProperties::Equal Struct Reference

`#include <font_glyph_pair.h>`

## Public Member Functions
constexpr bool | operator() (const impeller::GlyphProperties &lhs, const impeller::GlyphProperties &rhs) const

## Detailed Description

Definition at line 24 of file font_glyph_pair.h.

## Member Function Documentation

## ◆ operator()()

constexpr bool impeller::GlyphProperties::Equal::operator() | ( | const impeller::GlyphProperties & | lhs,
|  | const impeller::GlyphProperties & | rhs
| ) |  | const
| inline constexpr

Definition at line 25 of file font_glyph_pair.h.

26 {
27 return lhs.color.ToARGB() == rhs.color.ToARGB() &&
28 lhs.stroke == rhs.stroke && lhs.stroke_cap == rhs.stroke_cap &&
29 lhs.stroke_join == rhs.stroke_join &&
30 lhs.stroke_miter == rhs.stroke_miter &&
31 lhs.stroke_width == rhs.stroke_width;
32 }
impeller::Color::ToARGB
constexpr uint32_t ToARGB() const
Convert to ARGB 32 bit color.
Definition: color.h:258
impeller::GlyphProperties::color
Color color
Definition: font_glyph_pair.h:17
impeller::GlyphProperties::stroke_cap
Cap stroke_cap
Definition: font_glyph_pair.h:19
impeller::GlyphProperties::stroke_width
Scalar stroke_width
Definition: font_glyph_pair.h:18
impeller::GlyphProperties::stroke_join
Join stroke_join
Definition: font_glyph_pair.h:20
impeller::GlyphProperties::stroke_miter
Scalar stroke_miter
Definition: font_glyph_pair.h:21
impeller::GlyphProperties::stroke
bool stroke
Definition: font_glyph_pair.h:22

References impeller::GlyphProperties::color, impeller::GlyphProperties::stroke, impeller::GlyphProperties::stroke_cap, impeller::GlyphProperties::stroke_join, impeller::GlyphProperties::stroke_miter, impeller::GlyphProperties::stroke_width, and impeller::Color::ToARGB().

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

- impeller/typographer/font_glyph_pair.h