#include <SkViewInflate.h>
Classes | |
struct | IDStr |
Public Member Functions | |
SkViewInflate () | |
virtual | ~SkViewInflate () |
SkView * | inflate (const SkDOM &dom, const SkDOM::Node *node, SkView *root=NULL) |
SkView * | inflate (const char xml[], size_t len, SkView *root=NULL) |
SkView * | findViewByID (const char id[]) const |
Definition at line 26 of file SkViewInflate.h.
SkViewInflate::SkViewInflate | ( | ) |
virtual SkViewInflate::~SkViewInflate | ( | ) | [virtual] |
SkView* SkViewInflate::findViewByID | ( | const char | id[] | ) | const |
Given an id attribute value, return the corresponding view, or null if no match is found.
SkView* SkViewInflate::inflate | ( | const SkDOM & | dom, | |
const SkDOM::Node * | node, | |||
SkView * | root = NULL | |||
) |
Return the tree of inflated views. If root is null, create the root element as a view, otherwise assume root is that view, and just "inflate" it.
Returns null if the tree cannot be built.