/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.tizenopensource.org/license * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #define PADDING(title, w, h, fixed_w, fixed_h, align_w, align_h, l, t, r, b, rel1_to, rel2_to) \ part { name: title; \ type: RECT; \ scale: 1; \ description { \ state: "default" 0.0; \ visible: 1; \ min: w h; \ max: w h; \ fixed: fixed_w fixed_h; \ align: align_w align_h; \ rel1 { relative: l t; to: rel1_to; } \ rel2 { relative: r b; to: rel2_to; } \ color: 255 5 5 255; \ } \ } #define BEAT_GENLIST_PART_BASE( param_item_height ) \ part { name: "base"; \ type: RECT; \ repeat_events: 1; \ scale: 1; \ description { state: "default" 0.0; \ min: 0 param_item_height; \ color: 0 0 0 0; \ } \ } #define BEAT_GENLIST_PART_BG_IMAGE \ part { name: "bg_image"; \ clip_to: "disclip"; \ mouse_events: 0; \ description { state: "default" 0.0; \ visible: 0; \ image.normal: "images/00_list_bar_press_1x80.png"; \ } \ description { state: "selected" 0.0; \ inherit: "default" 0.0; \ visible: 1; \ } \ } #define BEAT_GENLIST_PART_BOTTOM_LINE \ part { name: "bottom_line"; \ type: RECT; \ clip_to: "disclip"; \ mouse_events: 0; \ description { state: "default" 0.0; \ min: 0 1; \ fixed: 0 1; \ visible: 1; \ color: 104 97 92 255; \ rel1 { \ relative: 0.0 1.0; \ offset: 0 -1; \ } \ } \ } #define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \ part { name: "elm.padding.left"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: param_padding_size 0; \ fixed: 1 0; \ visible: 0; \ rel2.relative: 0.0 1.0; \ align: 0.0 0.0; \ } \ } #define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \ part { name: "elm.padding.right"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: param_padding_size 0; \ fixed: 1 0; \ visible: 0; \ rel1.relative: 1.0 0.0; \ align: 1.0 0.0; \ } \ } #define BEAT_GENLIST_PART_DISCLIP \ part { name: "disclip"; \ type: RECT; \ description { state: "default" 0.0; \ } \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ color: 255 255 255 64; \ } \ }