Flutter Engine
The Flutter Engine
|
#include <SkMetaData.h>
Classes | |
class | Iter |
struct | Rec |
Public Types | |
enum | Type { kS32_Type , kScalar_Type , kPtr_Type , kBool_Type , kTypeCount } |
Public Member Functions | |
SkMetaData () | |
~SkMetaData () | |
void | reset () |
bool | findS32 (const char name[], int32_t *value=nullptr) const |
bool | findScalar (const char name[], SkScalar *value=nullptr) const |
const SkScalar * | findScalars (const char name[], int *count, SkScalar values[]=nullptr) const |
bool | findPtr (const char name[], void **value=nullptr) const |
bool | findBool (const char name[], bool *value=nullptr) const |
bool | hasS32 (const char name[], int32_t value) const |
bool | hasScalar (const char name[], SkScalar value) const |
bool | hasPtr (const char name[], void *value) const |
bool | hasBool (const char name[], bool value) const |
void | setS32 (const char name[], int32_t value) |
void | setScalar (const char name[], SkScalar value) |
SkScalar * | setScalars (const char name[], int count, const SkScalar values[]=nullptr) |
void | setPtr (const char name[], void *value) |
void | setBool (const char name[], bool value) |
bool | removeS32 (const char name[]) |
bool | removeScalar (const char name[]) |
bool | removePtr (const char name[]) |
bool | removeBool (const char name[]) |
const Rec * | find (const char name[], Type) const |
void * | set (const char name[], const void *data, size_t len, Type, int count) |
bool | remove (const char name[], Type) |
SkMetaData (const SkMetaData &)=delete | |
SkMetaData & | operator= (const SkMetaData &)=delete |
Public Attributes | |
Rec * | fRec = nullptr |
Friends | |
class | Iter |
A map from c-string keys to arrays of POD (int32_t, kScalar, void*, or bool) values.
Definition at line 15 of file SkMetaData.h.
enum SkMetaData::Type |
Enumerator | |
---|---|
kS32_Type | |
kScalar_Type | |
kPtr_Type | |
kBool_Type | |
kTypeCount |
Definition at line 56 of file SkMetaData.h.
|
inline |
Definition at line 17 of file SkMetaData.h.
|
inline |
Definition at line 18 of file SkMetaData.h.
|
delete |
const SkMetaData::Rec * SkMetaData::find | ( | const char | name[], |
Type | type | ||
) | const |
Definition at line 174 of file SkMetaData.cpp.
bool SkMetaData::findBool | ( | const char | name[], |
bool * | value = nullptr |
||
) | const |
Definition at line 149 of file SkMetaData.cpp.
bool SkMetaData::findPtr | ( | const char | name[], |
void ** | value = nullptr |
||
) | const |
bool SkMetaData::findS32 | ( | const char | name[], |
int32_t * | value = nullptr |
||
) | const |
bool SkMetaData::findScalar | ( | const char | name[], |
SkScalar * | value = nullptr |
||
) | const |
Definition at line 109 of file SkMetaData.cpp.
const SkScalar * SkMetaData::findScalars | ( | const char | name[], |
int * | count, | ||
SkScalar | values[] = nullptr |
||
) | const |
Definition at line 122 of file SkMetaData.cpp.
|
inline |
Definition at line 40 of file SkMetaData.h.
|
inline |
Definition at line 36 of file SkMetaData.h.
|
inline |
Definition at line 28 of file SkMetaData.h.
|
inline |
Definition at line 32 of file SkMetaData.h.
|
delete |
bool SkMetaData::remove | ( | const char | name[], |
Type | type | ||
) |
Definition at line 188 of file SkMetaData.cpp.
bool SkMetaData::removeBool | ( | const char | name[] | ) |
Definition at line 212 of file SkMetaData.cpp.
bool SkMetaData::removePtr | ( | const char | name[] | ) |
Definition at line 207 of file SkMetaData.cpp.
bool SkMetaData::removeS32 | ( | const char | name[] | ) |
Definition at line 197 of file SkMetaData.cpp.
bool SkMetaData::removeScalar | ( | const char | name[] | ) |
Definition at line 202 of file SkMetaData.cpp.
void SkMetaData::reset | ( | ) |
Definition at line 51 of file SkMetaData.cpp.
void SkMetaData::setBool | ( | const char | name[], |
bool | value | ||
) |
Definition at line 46 of file SkMetaData.cpp.
void SkMetaData::setPtr | ( | const char | name[], |
void * | value | ||
) |
Definition at line 42 of file SkMetaData.cpp.
void SkMetaData::setS32 | ( | const char | name[], |
int32_t | value | ||
) |
void SkMetaData::setScalar | ( | const char | name[], |
SkScalar | value | ||
) |
Definition at line 29 of file SkMetaData.cpp.
|
friend |
Definition at line 67 of file SkMetaData.h.
Rec* SkMetaData::fRec = nullptr |
Definition at line 105 of file SkMetaData.h.