bool TBWidgetsReader::LoadData(TBWidget *target, const char *data, int data_len) { TBNode node; node.ReadData(data, data_len); LoadNodeTree(target, &node); return true; }
void DemoWindow::LoadResourceData(const char *data) { // We could do g_widgets_reader->LoadData(this, filename) but we want // some extra data we store under "WindowInfo", so read into node tree. TBNode node; node.ReadData(data); LoadResource(node); }