forked from enlightenment/efl
rename some variables to be more clear
SVN revision: 67209
This commit is contained in:
parent
0601070403
commit
bcb983942d
|
@ -285,33 +285,33 @@ elm_frame_autocollapse_get(Evas_Object *obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
elm_frame_collapse_set(Evas_Object *obj, Eina_Bool enable)
|
elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse)
|
||||||
{
|
{
|
||||||
Widget_Data *wd;
|
Widget_Data *wd;
|
||||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||||
wd = elm_widget_data_get(obj);
|
wd = elm_widget_data_get(obj);
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
enable = !!enable;
|
collapse = !!collapse;
|
||||||
if (wd->collapsed == enable) return;
|
if (wd->collapsed == collapse) return;
|
||||||
edje_object_signal_emit(wd->frm, "elm,action,switch", "elm");
|
edje_object_signal_emit(wd->frm, "elm,action,switch", "elm");
|
||||||
edje_object_message_signal_process(wd->frm);
|
edje_object_message_signal_process(wd->frm);
|
||||||
wd->collapsed = enable;
|
wd->collapsed = collapse;
|
||||||
wd->anim = EINA_FALSE;
|
wd->anim = EINA_FALSE;
|
||||||
_sizing_eval(obj);
|
_sizing_eval(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
elm_frame_collapse_go(Evas_Object *obj, Eina_Bool enable)
|
elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse)
|
||||||
{
|
{
|
||||||
Widget_Data *wd;
|
Widget_Data *wd;
|
||||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||||
wd = elm_widget_data_get(obj);
|
wd = elm_widget_data_get(obj);
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
enable = !!enable;
|
collapse = !!collapse;
|
||||||
if (wd->collapsed == enable) return;
|
if (wd->collapsed == collapse) return;
|
||||||
edje_object_signal_emit(wd->frm, "elm,action,toggle", "elm");
|
edje_object_signal_emit(wd->frm, "elm,action,toggle", "elm");
|
||||||
evas_object_smart_callback_add(wd->frm, "recalc", (Evas_Smart_Cb)_recalc, obj);
|
evas_object_smart_callback_add(wd->frm, "recalc", (Evas_Smart_Cb)_recalc, obj);
|
||||||
wd->collapsed = enable;
|
wd->collapsed = collapse;
|
||||||
wd->anim = EINA_TRUE;
|
wd->anim = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,20 +72,20 @@ EAPI Eina_Bool elm_frame_autocollapse_get(Evas_Object *obj);
|
||||||
/**
|
/**
|
||||||
* @brief Manually collapse a frame without animations
|
* @brief Manually collapse a frame without animations
|
||||||
* @param obj The frame
|
* @param obj The frame
|
||||||
* @param enable true to collapse, false to expand
|
* @param collapse true to collapse, false to expand
|
||||||
*
|
*
|
||||||
* Use this to toggle the collapsed state of a frame, bypassing animations.
|
* Use this to toggle the collapsed state of a frame, bypassing animations.
|
||||||
*/
|
*/
|
||||||
EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool enable);
|
EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Manually collapse a frame with animations
|
* @brief Manually collapse a frame with animations
|
||||||
* @param obj The frame
|
* @param obj The frame
|
||||||
* @param enable true to collapse, false to expand
|
* @param collapse true to collapse, false to expand
|
||||||
*
|
*
|
||||||
* Use this to toggle the collapsed state of a frame, triggering animations.
|
* Use this to toggle the collapsed state of a frame, triggering animations.
|
||||||
*/
|
*/
|
||||||
EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool enable);
|
EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Determine the collapse state of a frame
|
* @brief Determine the collapse state of a frame
|
||||||
|
|
Loading…
Reference in New Issue