summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVorobiov Vitalii <vi.vorobiov@samsung.com>2013-10-31 11:04:11 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-31 11:04:18 +0900
commit2ae3f6902bfa8bf6acb99d455736fb7830498b44 (patch)
treebc4260a5eab955be97777d718a7b5b0fca5b9c92 /src
parente9614a9fddbc80da7061aae47b0e4f9cea1282e6 (diff)
edje: make functions in Text API return Eina_Bool.
Make the following functions return Eina_Bool so the caller can detect errors: edje_edit_state_text_set edje_edit_state_text_size_set edje_edit_state_text_align_x_set edje_edit_state_text_align_y_set edje_edit_state_text_elipsis_set edje_edit_state_text_fit_x_set edje_edit_state_text_fit_y_set edje_edit_state_text_min_x_set edje_edit_state_text_min_y_set edje_edit_state_text_max_x_set edje_edit_state_text_max_y_set Reviewers: cedric, seoz CC: reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D301 Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/Edje_Edit.h51
-rw-r--r--src/lib/edje/edje_edit.c61
2 files changed, 71 insertions, 41 deletions
diff --git a/src/lib/edje/Edje_Edit.h b/src/lib/edje/Edje_Edit.h
index ca521b5af2..efd7055e20 100644
--- a/src/lib/edje/Edje_Edit.h
+++ b/src/lib/edje/Edje_Edit.h
@@ -55,7 +55,7 @@ typedef struct _Edje_Edit_Script_Error Edje_Edit_Script_Error;
55 * @brief Functions to deal with edje internal object. Don't use in standard 55 * @brief Functions to deal with edje internal object. Don't use in standard
56 * situations. The use of any of the edje_edit_* functions can break your 56 * situations. The use of any of the edje_edit_* functions can break your
57 * theme ability, remember that the program must be separated from the interface! 57 * theme ability, remember that the program must be separated from the interface!
58 * 58 *
59 * This was intended ONLY for use in an actual edje editor program. Unless 59 * This was intended ONLY for use in an actual edje editor program. Unless
60 * you are writing one of these, do NOT use this API here. 60 * you are writing one of these, do NOT use this API here.
61 * 61 *
@@ -2227,8 +2227,10 @@ EAPI const char * edje_edit_state_text_get(Evas_Object *obj, const char *part, c
2227 * @param state The name of the state to set text (not including the state value). 2227 * @param state The name of the state to set text (not including the state value).
2228 * @param value The state value. 2228 * @param value The state value.
2229 * @param text The new text to assign. 2229 * @param text The new text to assign.
2230 *
2231 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2230 */ 2232 */
2231EAPI void edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state, double value,const char *text); 2233EAPI Eina_Bool edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state, double value,const char *text);
2232 2234
2233/** Get font name for a given part state. 2235/** Get font name for a given part state.
2234 * 2236 *
@@ -2273,12 +2275,15 @@ EAPI int edje_edit_state_text_size_get(Evas_Object *obj, const char *part, const
2273 * @param state The name of the state to set text size (not including the state value). 2275 * @param state The name of the state to set text size (not including the state value).
2274 * @param value The state value. 2276 * @param value The state value.
2275 * @param size The new font size to set (in pixel) 2277 * @param size The new font size to set (in pixel)
2278 *
2279 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2276 */ 2280 */
2277EAPI void edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *state, double value, int size); 2281EAPI Eina_Bool edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *state, double value, int size);
2278 2282
2279/** Get the text horizontal align of a part state. 2283/** Get the text horizontal align of a part state.
2280 * 2284 *
2281 * The value range is from 0.0(right) to 1.0(left) 2285 * The value range is from 0.0(right) to 1.0(left)
2286 * If the value is between -1.0 and 0.0 then it uses align automatically.
2282 * 2287 *
2283 * @param obj Object being edited. 2288 * @param obj Object being edited.
2284 * @param part Part that contain state. 2289 * @param part Part that contain state.
@@ -2305,14 +2310,17 @@ EAPI double edje_edit_state_text_align_y_get(Evas_Object *obj, const char *part,
2305/** Set the text horizontal align of a part state. 2310/** Set the text horizontal align of a part state.
2306 * 2311 *
2307 * The value range is from 0.0(right) to 1.0(left) 2312 * The value range is from 0.0(right) to 1.0(left)
2313 * If the value is between -1.0 and 0.0 then it uses align automatically.
2308 * 2314 *
2309 * @param obj Object being edited. 2315 * @param obj Object being edited.
2310 * @param part Part that contain state. 2316 * @param part Part that contain state.
2311 * @param state The name of the state to set the text horizontal align (not including the state value). 2317 * @param state The name of the state to set the text horizontal align (not including the state value).
2312 * @param value The state value. 2318 * @param value The state value.
2313 * @param align The new text horizontal align value 2319 * @param align The new text horizontal align value
2320 *
2321 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2314 */ 2322 */
2315EAPI void edje_edit_state_text_align_x_set(Evas_Object *obj, const char *part, const char *state, double value, double align); 2323EAPI Eina_Bool edje_edit_state_text_align_x_set(Evas_Object *obj, const char *part, const char *state, double value, double align);
2316 2324
2317/** Set the text vertical align of a part state. 2325/** Set the text vertical align of a part state.
2318 * 2326 *
@@ -2323,12 +2331,14 @@ EAPI void edje_edit_state_text_align_x_set(Evas_Object *obj, const char *part, c
2323 * @param state The name of the state to set the text vertical align (not including the state value). 2331 * @param state The name of the state to set the text vertical align (not including the state value).
2324 * @param value The state value. 2332 * @param value The state value.
2325 * @param align The new text vertical align value 2333 * @param align The new text vertical align value
2334 *
2335 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2326 */ 2336 */
2327EAPI void edje_edit_state_text_align_y_set(Evas_Object *obj, const char *part, const char *state, double value, double align); 2337EAPI Eina_Bool edje_edit_state_text_align_y_set(Evas_Object *obj, const char *part, const char *state, double value, double align);
2328 2338
2329/** Get the text elipsis of a part state. 2339/** Get the text elipsis of a part state.
2330 * 2340 *
2331 * The value range is from 0.0(right) to 1.0(left) 2341 * The value range is from 0.0(right) to 1.0(left), and -1.0 (if disabled)
2332 * 2342 *
2333 * @param obj Object being edited. 2343 * @param obj Object being edited.
2334 * @param part Part that contain state. 2344 * @param part Part that contain state.
@@ -2342,14 +2352,17 @@ EAPI double edje_edit_state_text_elipsis_get(Evas_Object *obj, const char *part,
2342/** Set the text vertical align of a part state. 2352/** Set the text vertical align of a part state.
2343 * 2353 *
2344 * The value range is from 0.0(right) to 1.0(left) 2354 * The value range is from 0.0(right) to 1.0(left)
2355 * If the value is in range from -1.0 to 0.0 then ellipsis is disabled.
2345 * 2356 *
2346 * @param obj Object being edited. 2357 * @param obj Object being edited.
2347 * @param part Part that contain state. 2358 * @param part Part that contain state.
2348 * @param state The name of the state to set the text elipses value (not including the state value). 2359 * @param state The name of the state to set the text elipses value (not including the state value).
2349 * @param value The state value. 2360 * @param value The state value.
2350 * @param balance The position where to cut the string 2361 * @param balance The position where to cut the string
2362 *
2363 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2351 */ 2364 */
2352EAPI void edje_edit_state_text_elipsis_set(Evas_Object *obj, const char *part, const char *state, double value, double balance); 2365EAPI Eina_Bool edje_edit_state_text_elipsis_set(Evas_Object *obj, const char *part, const char *state, double value, double balance);
2353 2366
2354/** Get if the text part fit it's container horizontally 2367/** Get if the text part fit it's container horizontally
2355 * 2368 *
@@ -2369,8 +2382,10 @@ EAPI Eina_Bool edje_edit_state_text_fit_x_get(Evas_Object *obj, const char *part
2369 * @param state The name of the state to set the if the text part fit it's container horizontally (not including the state value). 2382 * @param state The name of the state to set the if the text part fit it's container horizontally (not including the state value).
2370 * @param value The state value. 2383 * @param value The state value.
2371 * @param fit EINA_TRUE to make the text fit it's container horizontally, EINA_FALSE otherwise. 2384 * @param fit EINA_TRUE to make the text fit it's container horizontally, EINA_FALSE otherwise.
2385 *
2386 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2372 */ 2387 */
2373EAPI void edje_edit_state_text_fit_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool fit); 2388EAPI Eina_Bool edje_edit_state_text_fit_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool fit);
2374 2389
2375/** Get if the text part fit it's container vertically 2390/** Get if the text part fit it's container vertically
2376 * 2391 *
@@ -2390,8 +2405,10 @@ EAPI Eina_Bool edje_edit_state_text_fit_y_get(Evas_Object *obj, const char *part
2390 * @param state The name of the state to set the if the text part fit it's container vertically (not including the state value). 2405 * @param state The name of the state to set the if the text part fit it's container vertically (not including the state value).
2391 * @param value The state value. 2406 * @param value The state value.
2392 * @param fit EINA_TRUE to make the text fit it's container vertically, EINA_FALSE otherwise. 2407 * @param fit EINA_TRUE to make the text fit it's container vertically, EINA_FALSE otherwise.
2408 *
2409 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2393 */ 2410 */
2394EAPI void edje_edit_state_text_fit_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool fit); 2411EAPI Eina_Bool edje_edit_state_text_fit_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool fit);
2395 2412
2396/** Get if the text part forces the minimum horizontal size of the container to be equal to the minimum horizontal size of the text part 2413/** Get if the text part forces the minimum horizontal size of the container to be equal to the minimum horizontal size of the text part
2397 * 2414 *
@@ -2444,8 +2461,10 @@ EAPI Eina_Bool edje_edit_state_text_max_y_get(Evas_Object *obj, const char *part
2444 * @param state The name of the state to set the the minimum horizontal size of the container to be equal (not including the state value). 2461 * @param state The name of the state to set the the minimum horizontal size of the container to be equal (not including the state value).
2445 * @param value The state value. 2462 * @param value The state value.
2446 * @param v EINA_TRUE to make the text force it's forces container's minimum horizontal size, EINA_FALSE otherwise. 2463 * @param v EINA_TRUE to make the text force it's forces container's minimum horizontal size, EINA_FALSE otherwise.
2464 *
2465 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2447 */ 2466 */
2448EAPI void edje_edit_state_text_min_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v); 2467EAPI Eina_Bool edje_edit_state_text_min_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v);
2449 2468
2450/** Set if the text part forces the maximum horizontal size of the container to be equal to the maximum horizontal size of the text part 2469/** Set if the text part forces the maximum horizontal size of the container to be equal to the maximum horizontal size of the text part
2451 * 2470 *
@@ -2454,8 +2473,10 @@ EAPI void edje_edit_state_text_min_x_set(Evas_Object *obj, const char *part, con
2454 * @param state The name of the state to set the the maximum horizontal size of the container to be equal (not including the state value). 2473 * @param state The name of the state to set the the maximum horizontal size of the container to be equal (not including the state value).
2455 * @param value The state value. 2474 * @param value The state value.
2456 * @param v EINA_TRUE to make the text force it's forces container's maximum horizontal size, EINA_FALSE otherwise. 2475 * @param v EINA_TRUE to make the text force it's forces container's maximum horizontal size, EINA_FALSE otherwise.
2476 *
2477 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2457 */ 2478 */
2458EAPI void edje_edit_state_text_max_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v); 2479EAPI Eina_Bool edje_edit_state_text_max_x_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v);
2459 2480
2460/** Set if the text part forces the minimum vertical size of the container to be equal to the minimum vertical size of the text part 2481/** Set if the text part forces the minimum vertical size of the container to be equal to the minimum vertical size of the text part
2461 * 2482 *
@@ -2464,8 +2485,10 @@ EAPI void edje_edit_state_text_max_x_set(Evas_Object *obj, const char *part, con
2464 * @param state The name of the state to set the the minimum vertical size of the container to be equal (not including the state value). 2485 * @param state The name of the state to set the the minimum vertical size of the container to be equal (not including the state value).
2465 * @param value The state value. 2486 * @param value The state value.
2466 * @param v EINA_TRUE to make the text force it's forces container's minimum vertical size, EINA_FALSE otherwise. 2487 * @param v EINA_TRUE to make the text force it's forces container's minimum vertical size, EINA_FALSE otherwise.
2488 *
2489 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2467 */ 2490 */
2468EAPI void edje_edit_state_text_min_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v); 2491EAPI Eina_Bool edje_edit_state_text_min_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v);
2469 2492
2470/** Set if the text part forces the maximum vertical size of the container to be equal to the maximum vertical size of the text part 2493/** Set if the text part forces the maximum vertical size of the container to be equal to the maximum vertical size of the text part
2471 * 2494 *
@@ -2474,8 +2497,10 @@ EAPI void edje_edit_state_text_min_y_set(Evas_Object *obj, const char *part, con
2474 * @param state The name of the state to set the the maximum vertical size of the container to be equal (not including the state value). 2497 * @param state The name of the state to set the the maximum vertical size of the container to be equal (not including the state value).
2475 * @param value The state value. 2498 * @param value The state value.
2476 * @param v EINA_TRUE to make the text force it's forces container's maximum vertical size, EINA_FALSE otherwise. 2499 * @param v EINA_TRUE to make the text force it's forces container's maximum vertical size, EINA_FALSE otherwise.
2500 *
2501 * @return EINA_TRUE if successful, EINA_FALSE - otherwise.
2477 */ 2502 */
2478EAPI void edje_edit_state_text_max_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v); 2503EAPI Eina_Bool edje_edit_state_text_max_y_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v);
2479 2504
2480/** Get the list of all the fonts in the given edje. 2505/** Get the list of all the fonts in the given edje.
2481 * 2506 *
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index dc62e5592d..6cc37b22c4 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -3930,25 +3930,22 @@ edje_edit_state_text_get(Evas_Object *obj, const char *part, const char *state,
3930 return NULL; 3930 return NULL;
3931 3931
3932 txt = (Edje_Part_Description_Text *) pd; 3932 txt = (Edje_Part_Description_Text *) pd;
3933 //printf("GET TEXT of state: %s\n", state);
3934 3933
3935 return eina_stringshare_add(edje_string_get(&txt->text.text)); 3934 return eina_stringshare_add(edje_string_get(&txt->text.text));
3936} 3935}
3937 3936
3938EAPI void 3937EAPI Eina_Bool
3939edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state, double value, const char *text) 3938edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state, double value, const char *text)
3940{ 3939{
3941 Edje_Part_Description_Text *txt; 3940 Edje_Part_Description_Text *txt;
3942 3941
3943 GET_PD_OR_RETURN(); 3942 if ((!obj) || (!part) || (!state) || (!text))
3944 3943 return EINA_FALSE;
3945 //printf("SET TEXT of state: %s\n", state); 3944 GET_PD_OR_RETURN(EINA_FALSE);
3946
3947 if (!text) return;
3948 3945
3949 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3946 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
3950 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) 3947 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK))
3951 return; 3948 return EINA_FALSE;
3952 3949
3953 txt = (Edje_Part_Description_Text *) pd; 3950 txt = (Edje_Part_Description_Text *) pd;
3954 3951
@@ -3957,6 +3954,7 @@ edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state,
3957 txt->text.text.id = 0; 3954 txt->text.text.id = 0;
3958 3955
3959 edje_object_calc_force(obj); 3956 edje_object_calc_force(obj);
3957 return EINA_TRUE;
3960} 3958}
3961 3959
3962EAPI int 3960EAPI int
@@ -3971,33 +3969,33 @@ edje_edit_state_text_size_get(Evas_Object *obj, const char *part, const char *st
3971 return -1; 3969 return -1;
3972 3970
3973 txt = (Edje_Part_Description_Text *) pd; 3971 txt = (Edje_Part_Description_Text *) pd;
3974 //printf("GET TEXT_SIZE of state: %s [%d]\n", state, pd->text.size); 3972
3975 return txt->text.size; 3973 return txt->text.size;
3976} 3974}
3977 3975
3978EAPI void 3976EAPI Eina_Bool
3979edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *state, double value, int size) 3977edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *state, double value, int size)
3980{ 3978{
3981 Edje_Part_Description_Text *txt; 3979 Edje_Part_Description_Text *txt;
3982 3980
3983 GET_PD_OR_RETURN(); 3981 if ((!obj) || (!part) || (!state))
3984 3982 return EINA_FALSE;
3985 //printf("SET TEXT_SIZE of state: %s [%d]\n", state, size); 3983 if (size < 0) return EINA_FALSE;
3986 3984 GET_PD_OR_RETURN(EINA_FALSE);
3987 if (size < 0) return;
3988 3985
3989 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3986 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
3990 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) 3987 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK))
3991 return; 3988 return EINA_FALSE;
3992 3989
3993 txt = (Edje_Part_Description_Text *) pd; 3990 txt = (Edje_Part_Description_Text *) pd;
3994 3991
3995 txt->text.size = size; 3992 txt->text.size = size;
3996 3993
3997 edje_object_calc_force(obj); 3994 edje_object_calc_force(obj);
3995 return EINA_TRUE;
3998} 3996}
3999 3997
4000#define FUNC_TEXT_DOUBLE(Name, Value) \ 3998#define FUNC_TEXT_DOUBLE(Name, Value, Min) \
4001 EAPI double \ 3999 EAPI double \
4002 edje_edit_state_text_##Name##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 4000 edje_edit_state_text_##Name##_get(Evas_Object *obj, const char *part, const char *state, double value) \
4003 { \ 4001 { \
@@ -4012,25 +4010,30 @@ edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *st
4012 txt = (Edje_Part_Description_Text *) pd; \ 4010 txt = (Edje_Part_Description_Text *) pd; \
4013 return TO_DOUBLE(txt->text.Value); \ 4011 return TO_DOUBLE(txt->text.Value); \
4014 } \ 4012 } \
4015 EAPI void \ 4013 EAPI Eina_Bool \
4016 edje_edit_state_text_##Name##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 4014 edje_edit_state_text_##Name##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
4017 { \ 4015 { \
4018 Edje_Part_Description_Text *txt; \ 4016 Edje_Part_Description_Text *txt; \
4017 if ((!obj) || (!part) || (!state)) \
4018 return EINA_FALSE; \
4019 if ((v < Min) || (v > 1.0)) \
4020 return EINA_FALSE; \
4019 \ 4021 \
4020 GET_PD_OR_RETURN(); \ 4022 GET_PD_OR_RETURN(EINA_FALSE); \
4021 \ 4023 \
4022 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \ 4024 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \
4023 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) \ 4025 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) \
4024 return; \ 4026 return EINA_FALSE; \
4025 \ 4027 \
4026 txt = (Edje_Part_Description_Text *) pd; \ 4028 txt = (Edje_Part_Description_Text *) pd; \
4027 txt->text.Value = FROM_DOUBLE(v); \ 4029 txt->text.Value = FROM_DOUBLE(v); \
4028 edje_object_calc_force(obj); \ 4030 edje_object_calc_force(obj); \
4029 } \ 4031 return EINA_TRUE; \
4032 }
4030 4033
4031FUNC_TEXT_DOUBLE(align_x, align.x); 4034FUNC_TEXT_DOUBLE(align_x, align.x, -1.0);
4032FUNC_TEXT_DOUBLE(align_y, align.y); 4035FUNC_TEXT_DOUBLE(align_y, align.y, 0.0);
4033FUNC_TEXT_DOUBLE(elipsis, elipsis); 4036FUNC_TEXT_DOUBLE(elipsis, elipsis, -1.0);
4034 4037
4035#define FUNC_TEXT_BOOL(Name, Type) \ 4038#define FUNC_TEXT_BOOL(Name, Type) \
4036 EAPI Eina_Bool \ 4039 EAPI Eina_Bool \
@@ -4047,20 +4050,22 @@ FUNC_TEXT_DOUBLE(elipsis, elipsis);
4047 txt = (Edje_Part_Description_Text *) pd; \ 4050 txt = (Edje_Part_Description_Text *) pd; \
4048 return txt->text.Name##_##Type; \ 4051 return txt->text.Name##_##Type; \
4049 } \ 4052 } \
4050 EAPI void \ 4053 EAPI Eina_Bool \
4051 edje_edit_state_text_##Name##_##Type##_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v) \ 4054 edje_edit_state_text_##Name##_##Type##_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool v) \
4052 { \ 4055 { \
4053 Edje_Part_Description_Text *txt; \ 4056 Edje_Part_Description_Text *txt; \
4054 \ 4057 if ((!obj) || (!part) || (!state)) \
4055 GET_PD_OR_RETURN(); \ 4058 return EINA_FALSE; \
4059 GET_PD_OR_RETURN(EINA_FALSE); \
4056 \ 4060 \
4057 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \ 4061 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \
4058 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) \ 4062 (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) \
4059 return; \ 4063 return EINA_FALSE; \
4060 \ 4064 \
4061 txt = (Edje_Part_Description_Text *) pd; \ 4065 txt = (Edje_Part_Description_Text *) pd; \
4062 txt->text.Name##_##Type = v ? 1 : 0; \ 4066 txt->text.Name##_##Type = v ? 1 : 0; \
4063 edje_object_calc_force(obj); \ 4067 edje_object_calc_force(obj); \
4068 return EINA_TRUE; \
4064 } 4069 }
4065 4070
4066FUNC_TEXT_BOOL(fit, x); 4071FUNC_TEXT_BOOL(fit, x);