summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-06-01 12:12:03 +0100
committerTom Hacohen <tom@stosb.com>2015-06-01 12:12:03 +0100
commit5e43550937fb945e70b09491b0f86fc1f7b3003d (patch)
tree96221a7be2634f779b2c98078f8f6ab8c69c97f1 /src/lib
parent72488cb26b752ed6332daac10589def069801903 (diff)
downloadefl-5e43550937fb945e70b09491b0f86fc1f7b3003d.tar.gz
Evas table: Migrate types to .eo files.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/Evas_Common.h14
-rw-r--r--src/lib/evas/canvas/evas_table.eo31
2 files changed, 23 insertions, 22 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index de558708f5..8c538ea0b1 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -203,20 +203,6 @@ typedef enum _Evas_Font_Hinting_Flags
EVAS_FONT_HINTING_BYTECODE /**< Bytecode font hinting */
} Evas_Font_Hinting_Flags; /**< Flags for Font Hinting */
-/**
- * How to pack items into cells in a table.
- * @ingroup Evas_Object_Table
- *
- * @see evas_object_table_homogeneous_set() for an explanation of the function of
- * each one.
- */
-typedef enum _Evas_Object_Table_Homogeneous_Mode
-{
- EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE = 0,
- EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE = 1,
- EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM = 2
-} Evas_Object_Table_Homogeneous_Mode; /**< Table cell pack mode. */
-
typedef struct _Evas_Coord_Rectangle Evas_Coord_Rectangle; /**< A generic rectangle handle */
typedef struct _Evas_Point Evas_Point; /**< integer point */
diff --git a/src/lib/evas/canvas/evas_table.eo b/src/lib/evas/canvas/evas_table.eo
index 62da830776..d9f9142e3e 100644
--- a/src/lib/evas/canvas/evas_table.eo
+++ b/src/lib/evas/canvas/evas_table.eo
@@ -1,3 +1,18 @@
+/* XXX: Remove the Object_ part once the relevant Eolian bugs are fixed. */
+enum Evas.Object_Table.Homogeneous_Mode {
+ /**
+ * How to pack items into cells in a table.
+ * @ingroup Evas_Object_Table
+ *
+ * @see evas_object_table_homogeneous_set() for an explanation of the function of
+ * each one.
+ */
+ legacy: Evas_Object_Table_Homogeneous;
+ none = 0,
+ table = 1,
+ item = 2
+}
+
class Evas.Table (Evas.Smart_Clipped)
{
legacy_prefix: evas_object_table;
@@ -54,7 +69,7 @@ class Evas.Table (Evas.Smart_Clipped)
@see evas_object_table_homogeneous_set() */
}
values {
- homogeneous: Evas_Object_Table_Homogeneous_Mode;
+ homogeneous: Evas.Object_Table.Homogeneous_Mode;
}
}
@property align {
@@ -81,8 +96,8 @@ class Evas.Table (Evas.Smart_Clipped)
Get padding between cells. */
}
values {
- horizontal: Evas_Coord;
- vertical: Evas_Coord;
+ horizontal: Evas.Coord;
+ vertical: Evas.Coord;
}
}
@property mirrored {
@@ -145,7 +160,7 @@ class Evas.Table (Evas.Smart_Clipped)
row: ushort;
}
values {
- child: Evas_Object *;
+ child: Evas.Object *;
}
}
clear {
@@ -178,7 +193,7 @@ class Evas.Table (Evas.Smart_Clipped)
@see evas_object_table_add() */
- return: Evas_Object * @warn_unused;
+ return: Evas.Object * @warn_unused;
}
pack_get @const {
/*@
@@ -188,7 +203,7 @@ class Evas.Table (Evas.Smart_Clipped)
@since 1.1 */
return: bool;
params {
- @in child: Evas_Object *; /*@ The child object to add. */
+ @in child: Evas.Object *; /*@ The child object to add. */
@out col: ushort; /*@ pointer to store relative-horizontal position to place child. */
@out row: ushort; /*@ pointer to store relative-vertical position to place child. */
@out colspan: ushort; /*@ pointer to store how many relative-horizontal position to use for this child. */
@@ -209,7 +224,7 @@ class Evas.Table (Evas.Smart_Clipped)
return: bool;
params {
- @in child: Evas_Object * @nonull; /*@ The child object to add. */
+ @in child: Evas.Object * @nonull; /*@ The child object to add. */
@in col: ushort; /*@ relative-horizontal position to place child. */
@in row: ushort; /*@ relative-vertical position to place child. */
@in colspan: ushort; /*@ how many relative-horizontal position to use for this child. */
@@ -228,7 +243,7 @@ class Evas.Table (Evas.Smart_Clipped)
return: bool;
params {
- @in child: Evas_Object * @nonull;
+ @in child: Evas.Object * @nonull;
}
}
}