forked from enlightenment/efl
elm_gengrid: move enums to elm_gengrid_item.eo
Move enums from elm_gengrid_common.h to elm_gengrid_item.eo in order to make them more accessible for bindings.
This commit is contained in:
parent
fa18d897da
commit
ea191cc69a
|
@ -1,35 +1,5 @@
|
|||
#define ELM_GENGRID_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
|
||||
#define ELM_GENGRID_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
|
||||
|
||||
/**
|
||||
* Defines where to position the item in the genlist.
|
||||
*
|
||||
* @ingroup Gengrid
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ELM_GENGRID_ITEM_SCROLLTO_NONE = 0, /**< no scrollto */
|
||||
ELM_GENGRID_ITEM_SCROLLTO_IN = (1 << 0), /**< to the nearest viewport */
|
||||
ELM_GENGRID_ITEM_SCROLLTO_TOP = (1 << 1), /**< to the top of viewport */
|
||||
ELM_GENGRID_ITEM_SCROLLTO_MIDDLE = (1 << 2) /**< to the middle of viewport */
|
||||
} Elm_Gengrid_Item_Scrollto_Type;
|
||||
|
||||
|
||||
/**
|
||||
* Defines the type of the item part
|
||||
* Used while updating item's parts
|
||||
* It can be used at updating multi fields.
|
||||
*
|
||||
* @ingroup Gengrid
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ELM_GENGRID_ITEM_FIELD_ALL = 0,
|
||||
ELM_GENGRID_ITEM_FIELD_TEXT = (1 << 0),
|
||||
ELM_GENGRID_ITEM_FIELD_CONTENT = (1 << 1),
|
||||
ELM_GENGRID_ITEM_FIELD_STATE = (1 << 2)
|
||||
} Elm_Gengrid_Item_Field_Type;
|
||||
|
||||
/**
|
||||
* @see Elm_Gen_Item_Class
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,36 @@
|
|||
import elm_general;
|
||||
|
||||
enum Elm.Gengrid.Item.Scrollto_Type
|
||||
{
|
||||
[[
|
||||
Defines where to position the item in the genlist.
|
||||
|
||||
@ingroup Gengrid
|
||||
]]
|
||||
legacy: elm_gengrid_item_scrollto;
|
||||
none = 0, [[No scrollto.]]
|
||||
in = (1 << 0), [[To the nearest viewport.]]
|
||||
top = (1 << 1), [[To the top of viewport.]]
|
||||
middle = (1 << 2) [[To the middle of viewport.]]
|
||||
}
|
||||
|
||||
enum Elm.Gengrid.Item.Field_Type
|
||||
{
|
||||
[[
|
||||
Defines the type of the item part
|
||||
Used while updating item's parts
|
||||
It can be used at updating multi fields.
|
||||
|
||||
@ingroup Gengrid
|
||||
]]
|
||||
legacy: elm_gengrid_item_field;
|
||||
all = 0,
|
||||
text = (1 << 0),
|
||||
content = (1 << 1),
|
||||
state = (1 << 2)
|
||||
}
|
||||
|
||||
|
||||
class Elm.Gengrid_Item(Elm.Widget_Item)
|
||||
{
|
||||
eo_prefix: elm_obj_gengrid_item;
|
||||
|
@ -229,7 +260,7 @@ class Elm.Gengrid_Item(Elm.Widget_Item)
|
|||
*/
|
||||
params {
|
||||
@in parts: const (char) *; /*@ The name of item's part */
|
||||
@in itf: Elm_Gengrid_Item_Field_Type; /*@ The type of item's part type */
|
||||
@in itf: Elm.Gengrid.Item.Field_Type; /*@ The type of item's part type */
|
||||
}
|
||||
}
|
||||
item_class_update {
|
||||
|
|
Loading…
Reference in New Issue