Lines Matching refs:layout
414 /** SKIN LAYOUT
418 skin_layout_free( SkinLayout* layout )
420 if (layout) {
421 SKIN_LAYOUT_LOOP_LOCS(layout,loc)
424 layout->locations = NULL;
425 if (layout->onion_image) {
426 skin_image_unref( &layout->onion_image );
428 AFREE(layout);
433 skin_layout_get_display( SkinLayout* layout )
435 SKIN_LAYOUT_LOOP_LOCS(layout,loc)
445 skin_layout_get_dpad_rotation( SkinLayout* layout )
447 if (layout->has_dpad_rotation)
448 return layout->dpad_rotation;
450 SKIN_LAYOUT_LOOP_LOCS(layout, loc)
483 dprint( "### WARNING: invalid skin layout event format: '%s', should be '<TYPE>:<CODE>:<VALUE>'", event );
492 dprint( "### WARNING: unrecognized skin layout event name: %.*s", x-event, event );
505 SkinLayout* layout;
510 ANEW0(layout);
518 &layout->event_type,
519 &layout->event_code,
520 &layout->event_value );
522 layout->event_type = 0x05; /* close keyboard by default */
523 layout->event_code = 0;
524 layout->event_value = 1;
527 layout->name = root->name;
528 layout->color = aconfig_unsigned( root, "color", 0x808080 ) | 0xff000000;
529 ptail = &layout->locations;
533 layout->dpad_rotation = aconfig_int( root, "dpad-rotation", 0 );
534 layout->has_dpad_rotation = 1;
540 layout->onion_image = skin_image_find_in( basepath, img );
541 if (layout->onion_image == SKIN_IMAGE_NONE) {
542 layout->onion_image = NULL;
544 // In layout file, alpha is specified in range 0-100. Convert to
547 layout->onion_alpha = (256*alpha)/100;
548 layout->onion_rotation = aconfig_int( node, "rotation", 0 );
563 if (layout->locations == NULL)
566 layout->size.w = width;
567 layout->size.h = height;
569 return layout;
572 skin_layout_free(layout);
583 SkinLayout* layout;
594 ANEW0(layout);
596 layout->color = 0xff808080;
600 layout->event_type = 0x05; /* close keyboard by default */
601 layout->event_code = 0;
602 layout->event_value = 1;
610 layout->size = part->rect.size;
618 layout->size.w = part->rect.size.h;
619 layout->size.h = part->rect.size.w;
620 layout->event_value = 0;
627 layout->size = part->rect.size;
634 layout->size.w = part->rect.size.h;
635 layout->size.h = part->rect.size.w;
636 layout->event_value = 0;
639 layout->locations = location;
641 *ptail = layout;
642 ptail = &layout->next;
685 SkinLayout* layout = skin_layout_create_from_v2( node, file->parts, basepath );
686 if (layout == NULL) {
687 dprint( "## WARNING: ignoring layout in skin file" );
690 *ptail = layout;
691 layout->next = NULL;
692 ptail = &layout->next;
737 SKIN_FILE_LOOP_LAYOUTS(file,layout)
738 skin_layout_free(layout);