Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
SkSVGFontSize Class Reference

#include <SkSVGTypes.h>

Public Types

enum class  Type { kLength , kInherit }
 

Public Member Functions

 SkSVGFontSize ()
 
 SkSVGFontSize (const SkSVGLength &s)
 
bool operator== (const SkSVGFontSize &other) const
 
bool operator!= (const SkSVGFontSize &other) const
 
Type type () const
 
const SkSVGLengthsize () const
 

Detailed Description

Definition at line 526 of file SkSVGTypes.h.

Member Enumeration Documentation

◆ Type

enum class SkSVGFontSize::Type
strong
Enumerator
kLength 
kInherit 

Definition at line 528 of file SkSVGTypes.h.

Constructor & Destructor Documentation

◆ SkSVGFontSize() [1/2]

SkSVGFontSize::SkSVGFontSize ( )
inline

Definition at line 533 of file SkSVGTypes.h.

533: fType(Type::kInherit), fSize(0) {}

◆ SkSVGFontSize() [2/2]

SkSVGFontSize::SkSVGFontSize ( const SkSVGLength s)
inlineexplicit

Definition at line 534 of file SkSVGTypes.h.

535 : fType(Type::kLength)
536 , fSize(s) {}
struct MyStruct s

Member Function Documentation

◆ operator!=()

bool SkSVGFontSize::operator!= ( const SkSVGFontSize other) const
inline

Definition at line 541 of file SkSVGTypes.h.

541{ return !(*this == other); }

◆ operator==()

bool SkSVGFontSize::operator== ( const SkSVGFontSize other) const
inline

Definition at line 538 of file SkSVGTypes.h.

538 {
539 return fType == other.fType && fSize == other.fSize;
540 }

◆ size()

const SkSVGLength & SkSVGFontSize::size ( ) const
inline

Definition at line 545 of file SkSVGTypes.h.

545{ return fSize; }

◆ type()

Type SkSVGFontSize::type ( ) const
inline

Definition at line 543 of file SkSVGTypes.h.

543{ return fType; }

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