* Expose state visible flag

SVN revision: 36023
This commit is contained in:
Davide Andreoli 2008-09-16 19:01:37 +00:00
parent d45ae6945c
commit 3a441393b7
2 changed files with 35 additions and 0 deletions

View File

@ -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 ************************************/

View File

@ -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 */