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);
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));
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);
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
}
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);
}
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);
}
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
}
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);
* 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.
*
* @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.
*
* @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