summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry <larry.olj@gmail.com>2016-02-04 18:08:14 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-09 14:14:09 -0200
commit7541ceb0988d8cf94612a90e6d3676bf4e432496 (patch)
tree4168e5a201f1eb96b0cf592130b65869b057486b
parent6a07e2abc3d756be4aee1f10e199a740e7997f61 (diff)
downloadelementary-7541ceb0988d8cf94612a90e6d3676bf4e432496.tar.gz
Elm_Image: moved undefined types to eolian file
-rw-r--r--src/lib/elm_image.eo26
-rw-r--r--src/lib/elm_image_common.h31
2 files changed, 24 insertions, 33 deletions
diff --git a/src/lib/elm_image.eo b/src/lib/elm_image.eo
index 6ffffdcef..c16599cc7 100644
--- a/src/lib/elm_image.eo
+++ b/src/lib/elm_image.eo
@@ -1,3 +1,25 @@
+type Elm.Image.Orient: Evas_Image_Orient; [[Using Evas_Image_Orient enums. @since 1.14]]
+
+struct Elm.Image.Progress
+{
+ [[
+ Structure associated with smart callback 'download,progress'.
+ @since 1.8
+ ]]
+ now: double;
+ total: double;
+}
+
+struct Elm.Image.Error
+{
+ [[
+ Structure associated with smart callback 'download,progress'.
+ @since 1.8
+ ]]
+ status: int;
+ open_error: Eina.Bool;
+}
+
class Elm.Image (Elm.Widget, Efl.File, Efl.Image, Evas.Clickable_Interface,
Edje.Object,
Elm.Interface_Atspi_Image, Elm.Interface_Atspi_Widget_Action,
@@ -139,7 +161,7 @@ class Elm.Image (Elm.Widget, Efl.File, Efl.Image, Evas.Clickable_Interface,
get {
}
values {
- orient: Elm_Image_Orient; [[The image orientation Elm_Image_Orient Default is #ELM_IMAGE_ORIENT_NONE.]]
+ orient: Elm.Image.Orient; [[The image orientation Elm.Image.Orient Default is #ELM_IMAGE_ORIENT_NONE.]]
}
}
@property fill_outside {
@@ -205,7 +227,7 @@ class Elm.Image (Elm.Widget, Efl.File, Efl.Image, Evas.Clickable_Interface,
legacy: null;
}
values {
- file: const(Eina_File)*; [[The handler to an Eina_File that will be used as image source]]
+ file: const(Eina.File)*; [[The handler to an Eina_File that will be used as image source]]
group: const(char)* @optional; [[The group that the image belongs to, in case it's an EET (including Edje case) file. This can be used as a key inside evas image cache if this is a normal image file not eet file.]]
}
}
diff --git a/src/lib/elm_image_common.h b/src/lib/elm_image_common.h
index 497a23184..8e670cbb2 100644
--- a/src/lib/elm_image_common.h
+++ b/src/lib/elm_image_common.h
@@ -8,8 +8,6 @@
* Using Evas_Image_Orient enums
* @since 1.14
*/
-typedef Evas_Image_Orient Elm_Image_Orient;
-
#define ELM_IMAGE_ORIENT_NONE EVAS_IMAGE_ORIENT_NONE
#define ELM_IMAGE_ORIENT_0 EVAS_IMAGE_ORIENT_0
#define ELM_IMAGE_ROTATE_90 EVAS_IMAGE_ORIENT_90
@@ -24,34 +22,5 @@ typedef Evas_Image_Orient Elm_Image_Orient;
#define ELM_IMAGE_FLIP_TRANSVERSE EVAS_IMAGE_FLIP_TRANSVERSE
/**
- * Structure associated with smart callback 'download,progress'.
- * @since 1.8
- */
-typedef struct _Elm_Image_Progress Elm_Image_Progress;
-/**
- * Structure associated with smart callback 'download,progress'.
- */
-struct _Elm_Image_Progress
-{
- double now;
- double total;
-};
-
-/**
- * Structre associated with smart callback 'download,error'
- * @since 1.8
- */
-typedef struct _Elm_Image_Error Elm_Image_Error;
-/**
- * Structure associated with smart callback 'download,progress'.
- */
-struct _Elm_Image_Error
-{
- int status;
-
- Eina_Bool open_error;
-};
-
-/**
* @}
*/