Home | History | Annotate | Download | only in skin

Lines Matching full:part

245 /** SKIN PART
249 skin_part_free( SkinPart* part )
251 if (part) {
252 skin_background_done( part->background );
253 skin_display_done( part->display );
255 SKIN_PART_LOOP_BUTTONS(part,button)
258 part->buttons = NULL;
259 AFREE(part);
270 SkinPart* part;
274 dprint( "### WARNING: ignoring part location without 'name' element" );
278 for (part = parts; part; part = part->next)
279 if (!strcmp(part->name, partname))
282 if (part == NULL) {
283 dprint( "### WARNING: ignoring part location with unknown name '%s'", partname );
288 location->part = part;
299 SkinPart* part;
303 ANEW0(part);
304 part->name = root->name;
308 skin_background_init_from(part->background, node, basepath);
312 skin_display_init_from(part->display, node);
321 button->next = part->buttons;
322 part->buttons = button;
329 if (part->background->valid)
330 skin_box_minmax_update( &box, &part->background->rect );
332 if (part->display->valid)
333 skin_box_minmax_update( &box, &part->display->rect );
335 SKIN_PART_LOOP_BUTTONS(part, button)
339 if ( !skin_box_minmax_to_rect( &box, &part->rect ) ) {
340 skin_part_free(part);
341 part = NULL;
344 return part;
350 SkinPart* part;
354 ANEW0(part);
355 part->name = root->name;
359 skin_background_init_from(part->background, node, basepath);
363 skin_display_init_from(part->display, node);
372 button->next = part->buttons;
373 part->buttons = button;
380 if (part->background->valid)
381 skin_box_minmax_update( &box, &part->background->rect );
383 if (part->display->valid)
384 skin_box_minmax_update( &box, &part->display->rect );
386 SKIN_PART_LOOP_BUTTONS(part, button)
390 if ( !skin_box_minmax_to_rect( &box, &part->rect ) ) {
391 skin_part_free(part);
392 part = NULL;
394 return part;
416 SkinPart* part = loc->part;
417 if (part->display->valid) {
418 return part->display;
431 SkinPart* part = loc->part;
432 SKIN_PART_LOOP_BUTTONS(part,button)
519 if (!memcmp(node->name, "part", 4)) {
548 SkinPart* part;
554 file->parts = part = skin_part_create_from_v1( aconfig, basepath );
555 if (part == NULL)
570 location->part = part;
576 layout->size = part->rect.size;
581 location->anchor.x = part->rect.size.h;
584 layout->size.w = part->rect.size.h;
585 layout->size.h = part->rect.size.w;
590 location->anchor.x = part->rect.size.w;
591 location->anchor.y = part->rect.size.h;
593 layout->size = part->rect.size;
598 location->anchor.y = part->rect.size.w;
600 layout->size.w = part->rect.size.h;
601 part->rect.size.w;
627 SkinPart* part = skin_part_create_from_v2( node, basepath );
628 if (part == NULL) {
629 dprint( "## WARNING: can't load part '%s' from skin\n", node->name ? "<NULL>" : node->name );
632 part->next = NULL;
633 *ptail = part;
634 ptail = &part->next;
696 SKIN_FILE_LOOP_PARTS(file,part)
697 skin_part_free(part);