aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-05-29 14:52:33 +0100
committerTom Hacohen <tom@stosb.com>2015-05-29 14:52:33 +0100
commitedd361b420adc46f206b11f72dc6965da1633098 (patch)
tree5afc5eae616b54d949712e1455f251d004f3f74f /src
parentEvas: Move evas coord to eolian and start using it. (diff)
downloadefl-edd361b420adc46f206b11f72dc6965da1633098.tar.gz
Evas: Move evas aspect control to eolian and start using it.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/Evas_Common.h9
-rw-r--r--src/lib/evas/canvas/evas_object.eo2
-rw-r--r--src/lib/evas/evas_types.eot8
3 files changed, 9 insertions, 10 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index bed52eb76f..795ecde334 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -396,15 +396,6 @@ struct _Evas_Precision_Position /** A position with precision*/
Evas_Coord_Precision_Point canvas; /**< position on the canvas */
};
-typedef enum _Evas_Aspect_Control
-{
- EVAS_ASPECT_CONTROL_NONE = 0, /**< Preference on scaling unset */
- EVAS_ASPECT_CONTROL_NEITHER = 1, /**< Same effect as unset preference on scaling */
- EVAS_ASPECT_CONTROL_HORIZONTAL = 2, /**< Use all horizontal container space to place an object, using the given aspect */
- EVAS_ASPECT_CONTROL_VERTICAL = 3, /**< Use all vertical container space to place an object, using the given aspect */
- EVAS_ASPECT_CONTROL_BOTH = 4 /**< Use all horizontal @b and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect */
-} Evas_Aspect_Control; /**< Aspect types/policies for scaling size hints, used for evas_object_size_hint_aspect_set() */
-
typedef enum _Evas_Display_Mode
{
EVAS_DISPLAY_MODE_NONE = 0, /**<Default mode */
diff --git a/src/lib/evas/canvas/evas_object.eo b/src/lib/evas/canvas/evas_object.eo
index 831438df8e..ea2442a8a1 100644
--- a/src/lib/evas/canvas/evas_object.eo
+++ b/src/lib/evas/canvas/evas_object.eo
@@ -378,7 +378,7 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
@see evas_object_size_hint_aspect_set() */
}
values {
- aspect: Evas_Aspect_Control; /*@ The policy/type of aspect ratio to apply to @p obj. */
+ 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. */
}
diff --git a/src/lib/evas/evas_types.eot b/src/lib/evas/evas_types.eot
index 1bb6b767de..178337d16b 100644
--- a/src/lib/evas/evas_types.eot
+++ b/src/lib/evas/evas_types.eot
@@ -1 +1,9 @@
type Evas.Coord: int; /*@ A type for coordinates */
+enum Evas.Aspect_Control {
+ /**< Aspect types/policies for scaling size hints, used for evas_object_size_hint_aspect_set() */
+ none = 0, /**< Preference on scaling unset */
+ neither = 1, /**< Same effect as unset preference on scaling */
+ horizontal = 2, /**< Use all horizontal container space to place an object, using the given aspect */
+ vertical = 3, /**< Use all vertical container space to place an object, using the given aspect */
+ both = 4 /**< Use all horizontal @b and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect */
+}