3 Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
5 This file is part of org.tizen.efl-calendar
6 Written by Taeho Kang <taeho84.kang@samsung.com>
8 PROPRIETARY/CONFIDENTIAL
10 This software is the confidential and proprietary information of
11 SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
12 disclose such Confidential Information and shall use it only in
13 accordance with the terms of the license agreement you entered
14 into with SAMSUNG ELECTRONICS.
16 SAMSUNG make no representations or warranties about the suitability
17 of the software, either express or implied, including but not limited
18 to the implied warranties of merchantability, fitness for a particular
19 purpose, or non-infringement. SAMSUNG shall not be liable for any
20 damages suffered by licensee as a result of using, modifying or
21 distributing this software or its derivatives.
26 #ifndef __CALENDAR_EXTENDED_EDC_H__
27 #define __CALENDAR_EXTENDED_EDC_H__
32 /***********************************************************************/
33 /* size difinition layer */
34 #define PART_BG(iName)\
41 state: "default" 0.0;\
46 #define PART_BG_EX(iName, iMinx, iMiny)\
53 state: "default" 0.0;\
59 #define PART_RECT(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
66 state: "default" 0.0;\
67 rel1 { relative: iR1x iR1y; to: iR1t; } \
68 rel2 { relative: iR2x iR2y; to: iR2t; } \
73 #define PART_V_PIXEL_RECT(iName, size, iTo, iRy, iAy)\
80 state: "default" 0.0;\
84 rel1 { relative: 0.0 iRy; to: iTo; } \
85 rel2 { relative: 1.0 iRy; to: iTo; } \
90 #define PART_H_PIXEL_RECT(iName, size, iTo, iRx, iAx)\
97 state: "default" 0.0;\
101 rel1 { relative: iRx 0.0; to: iTo; } \
102 rel2 { relative: iRx 1.0; to: iTo; } \
107 #define PART_PIXEL_RECT(iName, iX, iY, iRx, iRy, iTo, iAx, iAy)\
114 state: "default" 0.0;\
118 rel1 { relative: iRx iRy; to: iTo; } \
119 rel2 { relative: iRx iRy; to: iTo; } \
125 /* vertical divided rect, index range from 0~N-1
126 * iIndex must be immediate integer and expression like (1+2) is not allowed
128 #define PART_V_DIVID_RECT(iName, iTo, iIndex, iN)\
135 state: "default" 0.0;\
136 rel1 { relative: 0.0 (iIndex%iN)/iN; to: iTo; } \
137 rel2 { relative: 1.0 (iIndex%iN+1)/iN; to: iTo; } \
142 /* horizontal divided rect, index range from 0~N-1
143 * iIndex must be immediate integer and expression like (1+2) is not allowed
145 #define PART_H_DIVID_RECT(iName, iTo, iIndex, iN)\
152 state: "default" 0.0;\
153 rel1 { relative: (iIndex%iN)/iN 0.0; to: iTo; } \
154 rel2 { relative: (iIndex%iN+1)/iN 1.0; to: iTo; } \
159 #define PART_CLIPPER_RECT(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
166 state: "default" 0.0;\
167 rel1 { relative: iR1x iR1y; to: iR1t; } \
168 rel2 { relative: iR2x iR2y; to: iR2t; } \
169 color: 255 255 255 255;\
173 /***********************************************************************/
174 /* mouse event filter layer */
175 #define PART_EVENT_RECT(iName, iTo)\
182 state: "default" 0.0;\
183 rel1 { relative: 0.0 0.0; to: iTo; } \
184 rel2 { relative: 1.0 1.0; to: iTo; } \
189 /***********************************************************************/
191 #define PART_COLOR_RECT(iName, iTo, iCr, iCg, iCb, iCa)\
198 state: "default" 0.0;\
199 rel1 { relative: 0.0 0.0; to: iTo; } \
200 rel2 { relative: 1.0 1.0; to: iTo; } \
201 color: iCr iCg iCb iCa;\
205 #define PART_IMAGE(iName, iTo, iImage)\
212 state: "default" 0.0;\
213 rel1 { relative: 0.0 0.0; to: iTo; } \
214 rel2 { relative: 1.0 1.0; to: iTo; } \
215 image.normal : iImage;\
219 #define PART_IMAGE_REL(iName, iImage, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
220 PART_RECT("_"iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
221 PART_IMAGE(iName, "_"iName, iImage)\
223 #define PART_BORDER_IMAGE(iName, iTo, iImage, iBl, iBr, iBt, iBb)\
230 state: "default" 0.0;\
231 rel1 { relative: 0.0 0.0; to: iTo; } \
232 rel2 { relative: 1.0 1.0; to: iTo; } \
233 image.normal : iImage;\
234 image.border : iBl iBr iBt iBb;\
238 #define PART_SWALLOW(iName, iTo)\
245 state: "default" 0.0;\
246 rel1 { relative: 0.0 0.0; to: iTo; } \
247 rel2 { relative: 1.0 1.0; to: iTo; } \
251 #define PART_SWALLOW_REL(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
252 PART_RECT("_"iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
253 PART_SWALLOW(iName, "_"iName)\
255 #define PART_UNVISIBLE_SWALLOW(iName, iTo)\
262 state: "default" 0.0;\
264 rel1 { relative: 0.0 0.0; to: iTo; } \
265 rel2 { relative: 1.0 1.0; to: iTo; } \
269 #define PART_UNVISIBLE_SWALLOW_REL(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
270 PART_RECT("_"iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
271 PART_UNVISIBLE_SWALLOW(iName, "_"iName)\
273 #define PART_CLIPPED_SWALLOW(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t,\
282 state: "default" 0.0;\
285 rel1 { relative: iR1x iR1y; to: iR1t; } \
286 rel2 { relative: iR2x iR2y; to: iR2t; } \
290 #define PART_TEXT(iName, iTo, iText, iFont, iSize,\
291 iAx, iAy, iCr, iCg, iCb, iCa)\
298 state: "default" 0.0;\
299 rel1 { relative: 0.0 0.0; to: iTo; } \
300 rel2 { relative: 1.0 1.0; to: iTo; } \
301 color: iCr iCg iCb iCa;\
311 #define PART_TEXT_REL(iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t,\
312 iText, iFont, iSize, iAx, iAy, iCr, iCg, iCb, iCa)\
313 PART_RECT("_"iName, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
314 PART_TEXT(iName, "_"iName, iText, iFont, iSize, iAx, iAy, iCr, iCg, iCb, iCa)\
316 /***********************************************************************/
318 #define SCRIPT_CUSTOM_PART(iPart)\
319 custom_state(PPART#iPart, "default", 0.0);\
320 set_state(PPART#iPart, "custom", 0.0)
322 #define SCRIPT_SET_REL(iPart, iR1x, iR1y, iR1t, iR2x, iR2y, iR2t)\
323 set_state_val(PPART#iPart, STATE_REL1, iR1x, iR1y);\
324 set_state_val(PPART#iPart, STATE_REL1_TO, PPART#iR1t, PPART#iR1t);\
325 set_state_val(PPART#iPart, STATE_REL2, iR2x, iR2y);\
326 set_state_val(PPART#iPart, STATE_REL2_TO, PPART#iR2t, PPART#iR2t)\
328 #define SCRIPT_SET_VISIBLE(iPart, iV)\
329 set_state_val(PPART#iPart, STATE_VISIBLE, iV)
331 #define SCRIPT_SET_IMAGE(iPart, iV)\
332 set_state_val(PPART#iPart, STATE_IMAGE, PIMAGE#iV)
334 /***********************************************************************/
336 #define PROGRAM_STATE_SET(isignal, isource, itarget, istate)\
338 name: #isource#isignal;\
341 action: STATE_SET #istate 0.0;\
345 #define PROGRAM_SET_VISIBLE(isignal, isource, iPart, iV)\
347 name: #isource#isignal;\
351 SCRIPT_SET_VISIBLE(iPart, iV);\
355 #define PROGRAM_SET_IMAGE(iname, isignal, isource, iPart, image)\
361 set_state_val(PPART#iPart, STATE_IMAGE, PIMAGE#image);\
365 #define PROGRAM_SET_INT(iname, isignal, isource, var, value)\
371 set_int(var, value);\
375 #endif /* __CALENDAR_EXTENDED_EDC_H__ */