Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkFontParameters::Variation::Axis Struct Reference

#include <SkFontParameters.h>

Public Member Functions

constexpr Axis ()
 
constexpr Axis (SkFourByteTag tag, float min, float def, float max, bool hidden)
 
bool isHidden () const
 
void setHidden (bool hidden)
 

Public Attributes

SkFourByteTag tag
 
float min
 
float def
 
float max
 

Detailed Description

Definition at line 17 of file SkFontParameters.h.

Constructor & Destructor Documentation

◆ Axis() [1/2]

constexpr SkFontParameters::Variation::Axis::Axis ( )
inlineconstexpr

◆ Axis() [2/2]

constexpr SkFontParameters::Variation::Axis::Axis ( SkFourByteTag  tag,
float  min,
float  def,
float  max,
bool  hidden 
)
inlineconstexpr

Definition at line 19 of file SkFontParameters.h.

19 :
20 tag(tag), min(min), def(def), max(max), flags(hidden ? HIDDEN : 0) {}

Member Function Documentation

◆ isHidden()

bool SkFontParameters::Variation::Axis::isHidden ( ) const
inline

Definition at line 31 of file SkFontParameters.h.

31{ return flags & HIDDEN; }

◆ setHidden()

void SkFontParameters::Variation::Axis::setHidden ( bool  hidden)
inline

Definition at line 33 of file SkFontParameters.h.

33{ flags = hidden ? (flags | HIDDEN) : (flags & ~HIDDEN); }

Member Data Documentation

◆ def

float SkFontParameters::Variation::Axis::def

Definition at line 27 of file SkFontParameters.h.

◆ max

float SkFontParameters::Variation::Axis::max

Definition at line 29 of file SkFontParameters.h.

◆ min

float SkFontParameters::Variation::Axis::min

Definition at line 25 of file SkFontParameters.h.

◆ tag

SkFourByteTag SkFontParameters::Variation::Axis::tag

Definition at line 23 of file SkFontParameters.h.


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