aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-05-29 14:49:28 +0100
committerTom Hacohen <tom@stosb.com>2015-05-29 14:49:28 +0100
commit05746637807d3d1a44c1ba9fcc77f320c677b4a2 (patch)
tree70bc6e76ac6d95afaca905f7556a2800c02f5e68 /src
parentEvas: Add a general evas types header. (diff)
downloadefl-05746637807d3d1a44c1ba9fcc77f320c677b4a2.tar.gz
Evas: Move evas coord to eolian and start using it.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/Evas_Common.h1
-rw-r--r--src/lib/evas/canvas/evas_object.eo30
-rw-r--r--src/lib/evas/evas_types.eot1
3 files changed, 17 insertions, 15 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index d2f0f6268b..bed52eb76f 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -338,7 +338,6 @@ typedef struct _Evas_Video_Surface Evas_Video_Surface;
typedef unsigned long long Evas_Modifier_Mask; /**< An Evas modifier mask type */
-typedef int Evas_Coord;/**< A type for coordinates */;
typedef int Evas_Font_Size; /**< A type for font size */
typedef int Evas_Angle; /**< A type for angle */
diff --git a/src/lib/evas/canvas/evas_object.eo b/src/lib/evas/canvas/evas_object.eo
index 9e9eee2314..831438df8e 100644
--- a/src/lib/evas/canvas/evas_object.eo
+++ b/src/lib/evas/canvas/evas_object.eo
@@ -1,3 +1,5 @@
+import evas_types;
+
abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stack)
{
eo_prefix: evas_obj;
@@ -42,8 +44,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
@see evas_object_size_hint_max_set() */
}
values {
- w: Evas_Coord; /*@ Integer to use as the maximum width hint. */
- h: Evas_Coord; /*@ Integer to use as the maximum height hint. */
+ w: Evas.Coord; /*@ Integer to use as the maximum width hint. */
+ h: Evas.Coord; /*@ Integer to use as the maximum height hint. */
}
}
@property size_hint_request {
@@ -76,8 +78,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
@see evas_object_size_hint_request_set() */
}
values {
- w: Evas_Coord; /*@ Integer to use as the preferred width hint. */
- h: Evas_Coord; /*@ Integer to use as the preferred height hint. */
+ w: Evas.Coord; /*@ Integer to use as the preferred width hint. */
+ h: Evas.Coord; /*@ Integer to use as the preferred height hint. */
}
}
@property type {
@@ -156,8 +158,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
@see evas_object_size_hint_min_set() for an example */
}
values {
- w: Evas_Coord; /*@ Integer to use as the minimum width hint. */
- h: Evas_Coord; /*@ Integer to use as the minimum height hint. */
+ w: Evas.Coord; /*@ Integer to use as the minimum width hint. */
+ h: Evas.Coord; /*@ Integer to use as the minimum height hint. */
}
}
@property pointer_mode {
@@ -377,8 +379,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
}
values {
aspect: Evas_Aspect_Control; /*@ The policy/type of aspect ratio to apply to @p obj. */
- w: Evas_Coord; /*@ Integer to use as aspect width ratio term. */
- h: Evas_Coord; /*@ Integer to use as aspect height ratio term. */
+ w: Evas.Coord; /*@ Integer to use as aspect width ratio term. */
+ h: Evas.Coord; /*@ Integer to use as aspect height ratio term. */
}
}
@property clip {
@@ -500,10 +502,10 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
@see evas_object_size_hint_padding_set() */
}
values {
- l: Evas_Coord; /*@ Integer to specify left padding. */
- r: Evas_Coord; /*@ Integer to specify right padding. */
- t: Evas_Coord; /*@ Integer to specify top padding. */
- b: Evas_Coord; /*@ Integer to specify bottom padding. */
+ l: Evas.Coord; /*@ Integer to specify left padding. */
+ r: Evas.Coord; /*@ Integer to specify right padding. */
+ t: Evas.Coord; /*@ Integer to specify top padding. */
+ b: Evas.Coord; /*@ Integer to specify bottom padding. */
}
}
@property repeat_events {
@@ -1257,8 +1259,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
their @c move() smart function definition. */
params {
- @in dx: Evas_Coord; /*@ horizontal offset (delta). */
- @in dy: Evas_Coord; /*@ vertical offset (delta). */
+ @in dx: Evas.Coord; /*@ horizontal offset (delta). */
+ @in dy: Evas.Coord; /*@ vertical offset (delta). */
}
}
smart_type_check_ptr @const {
diff --git a/src/lib/evas/evas_types.eot b/src/lib/evas/evas_types.eot
index e69de29bb2..1bb6b767de 100644
--- a/src/lib/evas/evas_types.eot
+++ b/src/lib/evas/evas_types.eot
@@ -0,0 +1 @@
+type Evas.Coord: int; /*@ A type for coordinates */