summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_image.eo
blob: 576138459d078c4451329dde12306612ff6c52be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
type @extern Evas_Object_Image_Pixels_Get_Cb: __undefined_type; /* FIXME: func pointers are not supported. */

class Evas.Image (Evas.Object, Efl.File, Efl.Image, Efl.Image_Load,
                  Efl.Image_Animated, Efl.Gfx.Buffer, Efl.Gfx.Fill,
                  Efl.Gfx.View, Evas.Filter)
{
   /* Legacy is implement inside Efl.Canvas.Image */
   legacy_prefix: evas_object_image;
   eo_prefix: null;
   methods {
      /* GL View */
      @property pixels_dirty {
         set {
            [[Mark whether the given image object is dirty and needs to
              request its pixels.

              This function will only properly work if a pixels get
              callback has been set.

              Warning: Use this function if you really know what you are
              doing.
            ]]
         }
         get {
            [[Retrieves whether the given image object is dirty (needs to
              be redrawn).
            ]]
         }
         values {
            dirty: bool; [[Whether the image is dirty.]]
         }
      }
      @property pixels_get_callback {
         set {
            [[Set the callback function to get pixels from a canvas' image.

              This functions sets a function to be the callback function
              that get pixels from a image of the canvas.
            ]]
         }
         values {
            func: Evas_Object_Image_Pixels_Get_Cb @nonull; [[The callback function.]]
            data: void *; [[The data pointer to be passed to $func.]]
         }
      }
   }
   implements {
      Eo.Base.constructor;
      Eo.Base.destructor;
      Eo.Base.dbg_info_get;
      Eo.Base.finalize;
      Efl.File.save;
      Efl.Image.orientation.get;
      Efl.Image.orientation.set;
      Efl.Image.smooth_scale.set;
      Efl.Image.smooth_scale.get;
      Efl.Image.ratio.get;
      Efl.Image.border.get;
      Efl.Image.border.set;
      Efl.Image.border_scale.get;
      Efl.Image.border_scale.set;
      Efl.Image.border_center_fill.get;
      Efl.Image.border_center_fill.set;
      Efl.Image.scale_hint.get;
      Efl.Image.scale_hint.set;
      Efl.Image.content_hint.get;
      Efl.Image.content_hint.set;
      Efl.Gfx.Buffer.alpha.get;
      Efl.Gfx.Buffer.alpha.set;
      Efl.Gfx.Buffer.buffer_update_add;
      Efl.Gfx.Buffer.stride.get;
      Efl.Gfx.Buffer.colorspace.get;
      Efl.Gfx.Buffer.buffer_get;
      Efl.Gfx.Buffer.buffer_set;
      Efl.Gfx.Buffer.buffer_copy_set;
      Efl.Gfx.Fill.fill.set;
      Efl.Gfx.Fill.fill.get;
      Efl.Gfx.Fill.filled.get;
      Efl.Gfx.Fill.filled.set;
      Efl.Gfx.Filter.filter_program.set;
      Efl.Gfx.View.view_size.get;
      Evas.Filter.filter_input_alpha;
      Evas.Filter.filter_input_render;
      Evas.Filter.filter_dirty;

      /* FIXME: Efl.File does not belong here */
      Efl.File.file.set;
      Efl.File.file.get;
      Efl.File.mmap.set;
      Efl.File.mmap.get;
   }
}