forked from enlightenment/efl
parent
711d361f20
commit
c9b5551660
|
@ -71,7 +71,7 @@ _show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED
|
|||
EINA_LIST_FOREACH(realized, l, glit)
|
||||
printf("%p ", glit);
|
||||
printf("\n");
|
||||
printf("genlist mode: %s\n", elm_genlist_mode_get(list));
|
||||
printf("genlist mode: %s\n", elm_genlist_mode_type_get(list));
|
||||
printf("mode item: %p\n", elm_genlist_mode_item_get(list));
|
||||
|
||||
evas_object_geometry_get(list, &x, &y, &w, &h);
|
||||
|
@ -129,7 +129,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
printf("bounce - horizontal: %d, vertical: %d\n", hbounce, vbounce);
|
||||
printf("compress mode: %d\n", elm_genlist_compress_mode_get(list));
|
||||
printf("homogeneous: %d\n", elm_genlist_homogeneous_get(list));
|
||||
printf("horizontal mode: %d\n", elm_genlist_horizontal_mode_get(list));
|
||||
printf("horizontal mode: %d\n", elm_genlist_mode_get(list));
|
||||
printf("longpress timeout: %0.3f\n",
|
||||
elm_genlist_longpress_timeout_get(list));
|
||||
printf("multi selection: %d\n", elm_genlist_multi_select_get(list));
|
||||
|
@ -145,7 +145,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
elm_genlist_bounce_set(list, EINA_FALSE, EINA_FALSE);
|
||||
elm_genlist_compress_mode_set(list, EINA_TRUE);
|
||||
elm_genlist_homogeneous_set(list, EINA_FALSE);
|
||||
elm_genlist_horizontal_mode_set(list, ELM_LIST_LIMIT);
|
||||
elm_genlist_mode_set(list, ELM_LIST_LIMIT);
|
||||
elm_genlist_multi_select_set(list, EINA_TRUE);
|
||||
elm_genlist_no_select_mode_set(list, EINA_FALSE);
|
||||
elm_genlist_height_for_width_mode_set(list, EINA_FALSE);
|
||||
|
|
|
@ -1705,6 +1705,41 @@ EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj);
|
|||
EINA_DEPRECATED EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode);
|
||||
EINA_DEPRECATED EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj);
|
||||
EINA_DEPRECATED EAPI void elm_genlist_item_icons_orphan(Elm_Object_Item *it);
|
||||
/**
|
||||
* This sets the horizontal stretching mode.
|
||||
*
|
||||
* @param obj The genlist object
|
||||
* @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
|
||||
*
|
||||
* This sets the mode used for sizing items horizontally. Valid modes
|
||||
* are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
|
||||
* ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
|
||||
* the scroller will scroll horizontally. Otherwise items are expanded
|
||||
* to fill the width of the viewport of the scroller. If it is
|
||||
* ELM_LIST_LIMIT, items will be expanded to the viewport width and
|
||||
* limited to that size.
|
||||
*
|
||||
* @see elm_genlist_horizontal_get()
|
||||
*
|
||||
* @deprecated use elm_genlist_mode_set()
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
EINA_DEPRECATED EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode);
|
||||
|
||||
/**
|
||||
* Gets the horizontal stretching mode.
|
||||
*
|
||||
* @param obj The genlist object
|
||||
* @return The mode to use
|
||||
* (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
|
||||
*
|
||||
* @see elm_genlist_horizontal_set()
|
||||
*
|
||||
* @deprecated use elm_genlist_mode_get()
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj);
|
||||
|
||||
|
||||
#define ELM_IMAGE_ROTATE_90_CW 1
|
||||
#define ELM_IMAGE_ROTATE_180_CW 2
|
||||
|
|
|
@ -4938,8 +4938,8 @@ elm_genlist_item_index_get(Elm_Object_Item *it)
|
|||
}
|
||||
|
||||
EAPI void
|
||||
elm_genlist_horizontal_set(Evas_Object *obj,
|
||||
Elm_List_Mode mode)
|
||||
elm_genlist_mode_set(Evas_Object *obj,
|
||||
Elm_List_Mode mode)
|
||||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
@ -4949,15 +4949,22 @@ elm_genlist_horizontal_set(Evas_Object *obj,
|
|||
_sizing_eval(obj);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
elm_genlist_horizontal_set(Evas_Object *obj,
|
||||
Elm_List_Mode mode)
|
||||
{
|
||||
elm_genlist_mode_set(obj, mode);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
elm_genlist_horizontal_mode_set(Evas_Object *obj,
|
||||
Elm_List_Mode mode)
|
||||
{
|
||||
elm_genlist_horizontal_set(obj, mode);
|
||||
elm_genlist_mode_set(obj, mode);
|
||||
}
|
||||
|
||||
EAPI Elm_List_Mode
|
||||
elm_genlist_horizontal_get(const Evas_Object *obj)
|
||||
elm_genlist_mode_get(const Evas_Object *obj)
|
||||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype) ELM_LIST_LAST;
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
@ -4965,10 +4972,16 @@ elm_genlist_horizontal_get(const Evas_Object *obj)
|
|||
return wd->mode;
|
||||
}
|
||||
|
||||
EAPI Elm_List_Mode
|
||||
elm_genlist_horizontal_get(const Evas_Object *obj)
|
||||
{
|
||||
return elm_genlist_mode_get(obj);
|
||||
}
|
||||
|
||||
EAPI Elm_List_Mode
|
||||
elm_genlist_horizontal_mode_get(const Evas_Object *obj)
|
||||
{
|
||||
return elm_genlist_horizontal_get(obj);
|
||||
return elm_genlist_mode_get(obj);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
@ -5248,7 +5261,7 @@ elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style)
|
|||
}
|
||||
|
||||
EAPI const char *
|
||||
elm_genlist_mode_get(const Evas_Object *obj)
|
||||
elm_genlist_mode_type_get(const Evas_Object *obj)
|
||||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
|
|
@ -484,11 +484,11 @@ EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Objec
|
|||
* ELM_LIST_LIMIT, items will be expanded to the viewport width and
|
||||
* limited to that size.
|
||||
*
|
||||
* @see elm_genlist_horizontal_get()
|
||||
* @see elm_genlist_mode_get()
|
||||
*
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode);
|
||||
EAPI void elm_genlist_mode_set(Evas_Object *obj, Elm_List_Mode mode);
|
||||
|
||||
/**
|
||||
* Gets the horizontal stretching mode.
|
||||
|
@ -501,7 +501,7 @@ EAPI void elm_genlist_horizontal_set(Evas_Object *obj,
|
|||
*
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj);
|
||||
EAPI Elm_List_Mode elm_genlist_mode_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* Set the always select mode.
|
||||
|
@ -1866,7 +1866,7 @@ EAPI void elm_genlist_item_mode_set(Elm_Object_Item *it
|
|||
*
|
||||
* @ingroup Genlist
|
||||
*/
|
||||
EAPI const char *elm_genlist_mode_get(const Evas_Object *obj);
|
||||
EAPI const char *elm_genlist_mode_type_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* Get active genlist mode item
|
||||
|
|
Loading…
Reference in New Issue