Lines Matching defs:node
49 AConfig* node,
52 const char* img = aconfig_str(node, "image", NULL);
53 int x = aconfig_int(node, "x", 0);
54 int y = aconfig_int(node, "y", 0);
87 skin_display_init_from( SkinDisplay* display, AConfig* node )
89 display->rect.pos.x = aconfig_int(node, "x", 0);
90 display->rect.pos.y = aconfig_int(node, "y", 0);
91 display->rect.size.w = aconfig_int(node, "width", 0);
92 display->rect.size.h = aconfig_int(node, "height", 0);
93 display->rotation = aconfig_unsigned(node, "rotation", SKIN_ROTATION_0);
213 skin_button_create_from( AConfig* node, const char* basepath )
218 const char* img = aconfig_str(node, "image", NULL);
219 int x = aconfig_int(node, "x", 0);
220 int y = aconfig_int(node, "y", 0);
222 button->name = node->name;
264 skin_location_create_from_v2( AConfig* node, SkinPart* parts )
266 const char* partname = aconfig_str(node, "name", NULL);
267 int x = aconfig_int(node, "x", 0);
268 int y = aconfig_int(node, "y", 0);
269 SkinRotation rot = aconfig_int(node, "rotation", SKIN_ROTATION_0);
300 AConfig* node;
306 node = aconfig_find(root, "background");
307 if (node)
308 skin_background_init_from(part->background, node, basepath);
310 node = aconfig_find(root, "display");
311 if (node)
312 skin_display_init_from(part->display, node);
314 node = aconfig_find(root, "button");
315 if (node) {
316 for (node = node->first_child; node != NULL; node = node->next)
318 SkinButton* button = skin_button_create_from(node, basepath);
351 AConfig* node;
357 node = aconfig_find(root, "background");
358 if (node)
359 skin_background_init_from(part->background, node, basepath);
361 node = aconfig_find(root, "display");
362 if (node)
363 skin_display_init_from(part->display, node);
365 node = aconfig_find(root, "buttons");
366 if (node) {
367 for (node = node->first_child; node != NULL; node = node->next)
369 SkinButton* button = skin_button_create_from(node, basepath);
488 AConfig* node;
495 node = aconfig_find( root, "event" );
496 if (node != NULL) {
497 skin_layout_event_decode( node->value,
511 node = aconfig_find( root, "dpad-rotation" );
512 if (node != NULL) {
517 for (node = root->first_child; node; node = node->next)
519 if (!memcmp(node->name, "part", 4)) {
520 SkinLocation* location = skin_location_create_from_v2( node, parts );
616 AConfig* node;
619 node = aconfig_find(aconfig, "parts");
620 if (node == NULL)
625 for (node = node->first_child; node != NULL; node = node->next)
627 SkinPart* part = skin_part_create_from_v2( node, basepath );
629 dprint( "## WARNING: can't load part '%s' from skin\n", node->name ? "<NULL>" : node->name );
642 node = aconfig_find(aconfig, "layouts");
643 if (node == NULL)
648 for (node = node->first_child; node != NULL; node = node->next)
650 SkinLayout* layout = skin_layout_create_from_v2( node, file->parts );