forked from enlightenment/efl
elm_list: Move enums to elm_list.eo
Move enums from elm_list_common.h to elm_list.eo in order to make them more accessible for bindings. Delete elm_list_common.h.
This commit is contained in:
parent
bae8a6a5c9
commit
b6d05186a4
|
@ -267,7 +267,6 @@ elm_layout_common.h \
|
|||
elm_layout_eo.h \
|
||||
elm_layout_legacy.h \
|
||||
elm_list.h \
|
||||
elm_list_common.h \
|
||||
elm_list_eo.h \
|
||||
elm_list_legacy.h \
|
||||
elm_macros.h \
|
||||
|
|
|
@ -1,5 +1,28 @@
|
|||
import elm_general;
|
||||
|
||||
enum Elm.List.Mode
|
||||
{
|
||||
[[
|
||||
@addtogroup List
|
||||
Set list's resizing behavior, transverse axis scrolling and items
|
||||
cropping. See each mode's description for more details.
|
||||
|
||||
@note Default value is #ELM_LIST_SCROLL.
|
||||
|
||||
Values here @b don't work as bitmasks -- only one can be chosen at
|
||||
a time.
|
||||
|
||||
@see elm_list_mode_set()
|
||||
@see elm_list_mode_get()
|
||||
]]
|
||||
legacy: elm_list;
|
||||
compress = 0, [[The list @b won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zeroed dimensions. The list will respect the container's geometry and, if any of its items won't fit into its @b transverse axis, one won't be able to scroll it in that direction.]]
|
||||
scroll, [[Default value. This is the same as #ELM_LIST_COMPRESS, with the exception that if any of its items won't fit into its transverse axis, one @b will be able to scroll it in that direction.]]
|
||||
limit, [[Sets a minimum size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a @b minimum size hint will be set for its @b transverse axis, so that the @b largest item in that direction fits well. This is naturally bound by the list object's maximum size hints, set externally.]]
|
||||
expand, [[Besides setting a minimum size on the transverse axis, just like on #ELM_LIST_LIMIT, the list will set a minimum size on the @b longitudinal axis, trying to reserve space to all its children to be visible at a time. . This is naturally bound by the list object's maximum size hints, set externally.]]
|
||||
last [[Indicates error if returned by elm_list_mode_get().]]
|
||||
}
|
||||
|
||||
class Elm.List (Elm.Layout, Elm_Interface_Scrollable,
|
||||
Elm_Interface_Atspi_Widget_Action, Elm_Interface_Atspi_Selection,
|
||||
Evas.Clickable_Interface, Evas.Selectable_Interface)
|
||||
|
@ -198,7 +221,7 @@ class Elm.List (Elm.Layout, Elm_Interface_Scrollable,
|
|||
@ingroup List */
|
||||
}
|
||||
values {
|
||||
mode: Elm_List_Mode(4); /*@ One of #Elm_List_Mode: #ELM_LIST_COMPRESS,
|
||||
mode: Elm.List.Mode(Elm.List.Mode.last); /*@ One of #Elm_List_Mode: #ELM_LIST_COMPRESS,
|
||||
#ELM_LIST_SCROLL, #ELM_LIST_LIMIT or #ELM_LIST_EXPAND. */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,7 +96,6 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <elm_list_common.h>
|
||||
#ifdef EFL_EO_API_SUPPORT
|
||||
#include <elm_list_eo.h>
|
||||
#endif
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
/**
|
||||
* @addtogroup List
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set list's resizing behavior, transverse axis scrolling and items
|
||||
* cropping. See each mode's description for more details.
|
||||
*
|
||||
* @note Default value is #ELM_LIST_SCROLL.
|
||||
*
|
||||
* Values here @b don't work as bitmasks -- only one can be chosen at
|
||||
* a time.
|
||||
*
|
||||
* @see elm_list_mode_set()
|
||||
* @see elm_list_mode_get()
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ELM_LIST_COMPRESS = 0, /**< The list @b won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zeroed dimensions. The list will respect the container's geometry and, if any of its items won't fit into its @b transverse axis, one won't be able to scroll it in that direction. */
|
||||
ELM_LIST_SCROLL, /**< Default value. This is the same as #ELM_LIST_COMPRESS, with the exception that if any of its items won't fit into its transverse axis, one @b will be able to scroll it in that direction. */
|
||||
ELM_LIST_LIMIT, /**< Sets a minimum size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a @b minimum size hint will be set for its @b transverse axis, so that the @b largest item in that direction fits well. This is naturally bound by the list object's maximum size hints, set externally. */
|
||||
ELM_LIST_EXPAND, /**< Besides setting a minimum size on the transverse axis, just like on #ELM_LIST_LIMIT, the list will set a minimum size on the @b longitudinal axis, trying to reserve space to all its children to be visible at a time. . This is naturally bound by the list object's maximum size hints, set externally. */
|
||||
ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
|
||||
} Elm_List_Mode;
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
Loading…
Reference in New Issue