Flutter Impeller
std::hash< impeller::ScaledFont > Struct Reference

#include <font_glyph_pair.h>

Public Member Functions

constexpr std::size_t operator() (const impeller::ScaledFont &sf) const
 

Detailed Description

Definition at line 45 of file font_glyph_pair.h.

Member Function Documentation

◆ operator()()

constexpr std::size_t std::hash< impeller::ScaledFont >::operator() ( const impeller::ScaledFont sf) const
inlineconstexpr

Definition at line 46 of file font_glyph_pair.h.

46  {
47  return fml::HashCombine(sf.font.GetHash(), sf.scale);
48  }

References impeller::ScaledFont::font, impeller::Font::GetHash(), and impeller::ScaledFont::scale.


The documentation for this struct was generated from the following file:
impeller::Font::GetHash
std::size_t GetHash() const override
Definition: font.cc:27
impeller::ScaledFont::font
Font font
Definition: font_glyph_pair.h:25
impeller::ScaledFont::scale
Scalar scale
Definition: font_glyph_pair.h:26