forked from enlightenment/efl
parent
d45ae6945c
commit
3a441393b7
|
@ -1042,6 +1042,24 @@ edje_edit_state_fill_size_offset_y_set(
|
|||
double y ///< The new value to set
|
||||
);
|
||||
|
||||
/**Get the visibility of a part state.*/
|
||||
EAPI unsigned char ///@return TRUE if the state is visible
|
||||
edje_edit_state_visible_get(
|
||||
Evas_Object *obj, ///< The edje object
|
||||
const char *part, ///< The name of the part
|
||||
const char *state ///< The name of the 'part state' (ex. "default 0.00")
|
||||
);
|
||||
|
||||
/**Set the visibility of a part state.*/
|
||||
EAPI void
|
||||
edje_edit_state_visible_set(
|
||||
Evas_Object *obj, ///< The edje object
|
||||
const char *part, ///< The name of the part
|
||||
const char *state, ///< The name of the 'part state' (ex. "default 0.00")
|
||||
unsigned char visible ///< TRUE to set the state visible
|
||||
);
|
||||
|
||||
|
||||
//@}
|
||||
/******************************************************************************/
|
||||
/************************** TEXT API ************************************/
|
||||
|
|
|
@ -2438,6 +2438,23 @@ edje_edit_state_fill_size_offset_y_set(Evas_Object *obj, const char *part, const
|
|||
edje_object_calc_force(obj);
|
||||
}
|
||||
|
||||
EAPI unsigned char
|
||||
edje_edit_state_visible_get(Evas_Object *obj, const char *part, const char *state)
|
||||
{
|
||||
GET_PD_OR_RETURN(0);
|
||||
//printf("Get state visible flag of part: %s state: %s\n", part, state);
|
||||
return pd->visible;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *state, unsigned char visible)
|
||||
{
|
||||
GET_PD_OR_RETURN();
|
||||
printf("Set state visible flag of part: %s state: %s to: %d\n", part, state, visible);
|
||||
if (visible) pd->visible = 1;
|
||||
else pd->visible = 0;
|
||||
edje_object_calc_force(obj);
|
||||
}
|
||||
|
||||
/**************/
|
||||
/* TEXT API */
|
||||
|
|
Loading…
Reference in New Issue