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

#include <SkSVGTextPriv.h>

Public Types

enum  Attr : size_t {
  kX = 0 , kY = 1 , kDx = 2 , kDy = 3 ,
  kRotate = 4
}
 

Public Member Functions

float operator[] (Attr a) const
 
float & operator[] (Attr a)
 
bool has (Attr a) const
 
bool hasAny () const
 
void setImplicitRotate (bool imp)
 
bool isImplicitRotate () const
 

Detailed Description

Definition at line 42 of file SkSVGTextPriv.h.

Member Enumeration Documentation

◆ Attr

Enumerator
kX 
kY 
kDx 
kDy 
kRotate 

Definition at line 45 of file SkSVGTextPriv.h.

Member Function Documentation

◆ has()

bool SkSVGTextContext::PosAttrs::has ( Attr  a) const
inline

Definition at line 56 of file SkSVGTextPriv.h.

56{ return fStorage[a] != kNone; }
struct MyStruct a[10]

◆ hasAny()

bool SkSVGTextContext::PosAttrs::hasAny ( ) const
inline

Definition at line 57 of file SkSVGTextPriv.h.

57 {
58 return this->has(kX)
59 || this->has(kY)
60 || this->has(kDx)
61 || this->has(kDy)
62 || this->has(kRotate);
63 }
bool has(Attr a) const

◆ isImplicitRotate()

bool SkSVGTextContext::PosAttrs::isImplicitRotate ( ) const
inline

Definition at line 66 of file SkSVGTextPriv.h.

66{ return fImplicitRotate; }

◆ operator[]() [1/2]

float & SkSVGTextContext::PosAttrs::operator[] ( Attr  a)
inline

Definition at line 54 of file SkSVGTextPriv.h.

54{ return fStorage[a]; }

◆ operator[]() [2/2]

float SkSVGTextContext::PosAttrs::operator[] ( Attr  a) const
inline

Definition at line 53 of file SkSVGTextPriv.h.

53{ return fStorage[a]; }

◆ setImplicitRotate()

void SkSVGTextContext::PosAttrs::setImplicitRotate ( bool  imp)
inline

Definition at line 65 of file SkSVGTextPriv.h.

65{ fImplicitRotate = imp; }

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