Flutter Engine
The Flutter Engine
|
#include <SkDOM.h>
Classes | |
class | AttrIter |
Public Types | |
enum | Type { kElement_Type , kText_Type } |
typedef SkDOMNode | Node |
typedef SkDOMAttr | Attr |
Public Member Functions | |
SkDOM () | |
~SkDOM () | |
const Node * | build (SkStream &) |
const Node * | copy (const SkDOM &dom, const Node *node) |
const Node * | getRootNode () const |
SkXMLParser * | beginParsing () |
const Node * | finishParsing () |
Type | getType (const Node *) const |
const char * | getName (const Node *) const |
const Node * | getFirstChild (const Node *, const char elem[]=nullptr) const |
const Node * | getNextSibling (const Node *, const char elem[]=nullptr) const |
const char * | findAttr (const Node *, const char attrName[]) const |
const Attr * | getFirstAttr (const Node *) const |
const Attr * | getNextAttr (const Node *, const Attr *) const |
const char * | getAttrName (const Node *, const Attr *) const |
const char * | getAttrValue (const Node *, const Attr *) const |
int | countChildren (const Node *node, const char elem[]=nullptr) const |
bool | findS32 (const Node *, const char name[], int32_t *value) const |
bool | findScalars (const Node *, const char name[], SkScalar value[], int count) const |
bool | findHex (const Node *, const char name[], uint32_t *value) const |
bool | findBool (const Node *, const char name[], bool *) const |
int | findList (const Node *, const char name[], const char list[]) const |
bool | findScalar (const Node *node, const char name[], SkScalar value[]) const |
bool | hasAttr (const Node *, const char name[], const char value[]) const |
bool | hasS32 (const Node *, const char name[], int32_t value) const |
bool | hasScalar (const Node *, const char name[], SkScalar value) const |
bool | hasHex (const Node *, const char name[], uint32_t value) const |
bool | hasBool (const Node *, const char name[], bool value) const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
typedef SkDOMAttr SkDOM::Attr |
typedef SkDOMNode SkDOM::Node |
enum SkDOM::Type |
Enumerator | |
---|---|
kElement_Type | |
kText_Type |
SkXMLParser * SkDOM::beginParsing | ( | ) |
const SkDOM::Node * SkDOM::build | ( | SkStream & | docStream | ) |
Returns null on failure
Definition at line 294 of file SkDOM.cpp.
const SkDOM::Node * SkDOM::copy | ( | const SkDOM & | dom, |
const Node * | node | ||
) |
Definition at line 335 of file SkDOM.cpp.
Definition at line 361 of file SkDOM.cpp.
const char * SkDOM::findAttr | ( | const Node * | node, |
const char | attrName[] | ||
) | const |
bool SkDOM::findBool | ( | const Node * | node, |
const char | name[], | ||
bool * | value | ||
) | const |
Definition at line 391 of file SkDOM.cpp.
bool SkDOM::findHex | ( | const Node * | node, |
const char | name[], | ||
uint32_t * | value | ||
) | const |
Definition at line 386 of file SkDOM.cpp.
bool SkDOM::findS32 | ( | const Node * | node, |
const char | name[], | ||
int32_t * | value | ||
) | const |
Definition at line 68 of file SkDOM.h.
Definition at line 381 of file SkDOM.cpp.
const SkDOM::Node * SkDOM::finishParsing | ( | ) |
const SkDOM::Attr * SkDOM::getFirstAttr | ( | const Node * | node | ) | const |
const SkDOM::Node * SkDOM::getFirstChild | ( | const Node * | node, |
const char | elem[] = nullptr |
||
) | const |
const char * SkDOM::getName | ( | const Node * | node | ) | const |
const SkDOM::Attr * SkDOM::getNextAttr | ( | const Node * | node, |
const Attr * | attr | ||
) | const |
const SkDOM::Node * SkDOM::getNextSibling | ( | const Node * | node, |
const char | elem[] = nullptr |
||
) | const |
const SkDOM::Node * SkDOM::getRootNode | ( | ) | const |
SkDOM::Type SkDOM::getType | ( | const Node * | node | ) | const |
bool SkDOM::hasAttr | ( | const Node * | node, |
const char | name[], | ||
const char | value[] | ||
) | const |
bool SkDOM::hasBool | ( | const Node * | node, |
const char | name[], | ||
bool | value | ||
) | const |
bool SkDOM::hasHex | ( | const Node * | node, |
const char | name[], | ||
uint32_t | value | ||
) | const |
bool SkDOM::hasS32 | ( | const Node * | node, |
const char | name[], | ||
int32_t | value | ||
) | const |
Definition at line 412 of file SkDOM.cpp.