*
* @return EINA_TRUE if successful, EINA_FALSE otherwise.
*/
-EAPI Eina_Bool edje_edit_state_rel1_offset_x_set(Evas_Object *obj, const char *part, const char *state, double value, double x);
+EAPI Eina_Bool edje_edit_state_rel1_offset_x_set(Evas_Object *obj, const char *part, const char *state, double value, int x);
/** Set the 'rel1 offset Y' value of state.
*
*
* @return EINA_TRUE if successful, EINA_FALSE otherwise.
*/
-EAPI Eina_Bool edje_edit_state_rel1_offset_y_set(Evas_Object *obj, const char *part, const char *state, double value, double y);
+EAPI Eina_Bool edje_edit_state_rel1_offset_y_set(Evas_Object *obj, const char *part, const char *state, double value, int y);
/** Set the 'rel2 offset X' value of state.
*
*
* @return EINA_TRUE if successful, EINA_FALSE otherwise.
*/
-EAPI Eina_Bool edje_edit_state_rel2_offset_x_set(Evas_Object *obj, const char *part, const char *state, double value, double x);
+EAPI Eina_Bool edje_edit_state_rel2_offset_x_set(Evas_Object *obj, const char *part, const char *state, double value, int x);
/** Set the 'rel2 offset Y' value of state.
*
*
* @return EINA_TRUE if successful, EINA_FALSE otherwise.
*/
-EAPI Eina_Bool edje_edit_state_rel2_offset_y_set(Evas_Object *obj, const char *part, const char *state, double value, double y);
+EAPI Eina_Bool edje_edit_state_rel2_offset_y_set(Evas_Object *obj, const char *part, const char *state, double value, int y);
/** Get the part name rel1x is relative to.
*
return pd->Sub.offset_##Value; \
} \
EAPI Eina_Bool \
- edje_edit_state_##Sub##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
+ edje_edit_state_##Sub##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, int v) \
{ \
GET_PD_OR_RETURN(EINA_FALSE); \
- pd->Sub.offset_##Value = TO_INT(FROM_DOUBLE(v)); \
+ pd->Sub.offset_##Value = v; \
edje_object_calc_force(obj); \
return EINA_TRUE; \
}
EAPI double \
edje_edit_state_##Class##_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
{ \
- GET_PD_OR_RETURN(0); \
+ GET_PD_OR_RETURN(0); \
return TO_DOUBLE(pd->Class.Value); \
} \
EAPI Eina_Bool \