edje: Edje_Edit - add API for missing map properties

Summary:
added getters & setters for
collections.group.parts.part.description.perspective.zplane
collections.group.parts.part.description.perspective.focal
collections.group.parts.part.description.map.rotation: x, y, z
collections.group.parts.part.description.map.smooth
collections.group.parts.part.description.map.alpha
collections.group.parts.part.description.map.perspective_on
collections.group.parts.part.description.map.backface_cull

@feature

Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1071

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
This commit is contained in:
Andrii Kroitor 2014-06-23 11:16:37 +02:00 committed by Cedric BAIL
parent d2d69c9c81
commit cdc477e2f7
2 changed files with 333 additions and 0 deletions

View File

@ -3287,6 +3287,200 @@ edje_edit_state_map_light_get(Evas_Object *obj, const char *part, const char *st
EAPI Eina_Bool
edje_edit_state_map_light_set(Evas_Object *obj, const char *part, const char *state, double value, const char *source_part);
/** Get backface_cull value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return backface_cull value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_backface_cull_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set backface_cull value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New backface_cull value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_backface_cull_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool);
/** Get perspective_on value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return perspective_on value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_on_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set perspective_on value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New perspective_on value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_on_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool);
/** Get map.alpha value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return map.alpha value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_alpha_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set map.alpha value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New map.alpha value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_alpha_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Get map.smooth value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return map.smooth value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_smooth_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set map.smooth value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New map.smooth value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_smooth_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool);
/** Get map.rotation of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param x x-rotation.
* @param y x-rotation.
* @param z z-rotation.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_rotation_get(Evas_Object *obj, const char *part, const char *state, double value, double *x, double *y, double *z);
/** Set map.rotation of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param x x-rotation.
* @param y x-rotation.
* @param z z-rotation.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_rotation_set(Evas_Object *obj, const char *part, const char *state, double value, double x, double y, double z);
/** Get map.perspective.focal value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return map.perspective.focal value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_focal_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set map.perspective.focal value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New map.perspective.focal value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_focal_set(Evas_Object *obj, const char *part, const char *state, double value, int focal);
/** Get map.perspective.zplane value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
*
* @return map.perspective.zplane value of given part state.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_zplane_get(Evas_Object *obj, const char *part, const char *state, double value);
/** Set map.perspective.zplane value of given part state.
*
* @param obj Object being edited.
* @param part The name of the part.
* @param state The name of the state (not including the state value).
* @param value The state value.
* @param bool New map.perspective.zplane value.
*
* @return EINA_TRUE in case of success, EINA_FALSE otherwise.
* @since 1.11
**/
EAPI Eina_Bool
edje_edit_state_map_perspective_zplane_set(Evas_Object *obj, const char *part, const char *state, double value, int zplane);
/** Get the part's name that is used as the center rotation.
*
* @param obj Object being edited.

View File

@ -5707,6 +5707,145 @@ edje_edit_state_map_rotation_center_get(Evas_Object *obj, const char *part, cons
return NULL;
}
EAPI Eina_Bool
edje_edit_state_map_backface_cull_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->map.backcull;
}
EAPI Eina_Bool
edje_edit_state_map_backface_cull_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->map.backcull = bool;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_on_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->map.persp_on;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_on_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->map.persp_on = bool;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_alpha_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->map.alpha;
}
EAPI Eina_Bool
edje_edit_state_map_alpha_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->map.alpha = bool;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_smooth_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool bool)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->map.smooth = bool;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_smooth_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->map.smooth;
}
EAPI Eina_Bool
edje_edit_state_map_rotation_set(Evas_Object *obj, const char *part, const char *state, double value, double x, double y, double z)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->map.rot.x = FROM_DOUBLE(x);
pd->map.rot.y = FROM_DOUBLE(y);
pd->map.rot.z = FROM_DOUBLE(z);
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_rotation_get(Evas_Object *obj, const char *part, const char *state, double value, double *x, double *y, double *z)
{
GET_PD_OR_RETURN(EINA_FALSE);
*x = TO_DOUBLE(pd->map.rot.x);
*y = TO_DOUBLE(pd->map.rot.y);
*z = TO_DOUBLE(pd->map.rot.z);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_zplane_set(Evas_Object *obj, const char *part, const char *state, double value, int zplane)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->persp.zplane = zplane;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_zplane_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->persp.zplane;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_focal_set(Evas_Object *obj, const char *part, const char *state, double value, int focal)
{
GET_PD_OR_RETURN(EINA_FALSE);
pd->persp.focal = focal;
edje_object_calc_force(obj);
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_state_map_perspective_focal_get(Evas_Object *obj, const char *part, const char *state, double value)
{
GET_PD_OR_RETURN(EINA_FALSE);
return pd->persp.focal;
}
EAPI Eina_Bool
edje_edit_state_map_light_set(Evas_Object *obj, const char *part, const char *state, double value, const char *source_part)
{