aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_vg.eo
blob: bf4960e3c1b8e6cbabde7441fb71e4247c0ee222 (plain) (blame)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
class Evas.VG (Evas.Object, Efl.File)
{
   legacy_prefix: evas_object_vg;
   eo_prefix: evas_obj_vg;
   properties {
      root_node {
	 get {
	 }
	 values {
	    Evas_VG_Node *container;
	 }
      }
      size {
         get {
	    /*@
	      Get the size as defined in the original data
	      before any scaling (as in the file or when the
	      object were added).
	    */
	 }
	 set {
	    /*@
	      Set the size defined in the original data
	      before any scaling (as in the file or when the
	      object were added).
	    */	 
	 }
	 values {
	    uint w;
	    uint h;
	 }
      }
      mmap {
         set {
            /*@
            Set the source mmaped file from where an image object must fetch the real
            image data (it must be an Eina_File).

            If the file supports multiple data stored in it (as Eet files do),
            you can specify the key to be used as the index of the image in
            this file.

            @since 1.14 */
	    return: bool;
         }
         get {
            /*@
            Get the source mmaped file from where an image object must fetch the real
            image data (it must be an Eina_File).

            If the file supports multiple data stored in it (as Eet files do),
            you can get the key to be used as the index of the image in
            this file.

            @since 1.14 */
         }
         values {
            const(Eina.File)* f; /*@ The mmaped file */
            const(char)* key; /*@ The image key in @p file (if its an Eet one), or @c
            NULL, otherwise. */
         }
      }
      fill {
         set {
            /*@
            Set how to fill an image object's drawing rectangle given the
            (real) image bound to it.

            Note that if @p w or @p h are smaller than the dimensions of
            @p obj, the displayed image will be @b tiled around the object's
            area. To have only one copy of the bound image drawn, @p x and @p y
            must be 0 and @p w and @p h need to be the exact width and height
            of the image object itself, respectively.

            See the following image to better understand the effects of this
            call. On this diagram, both image object and original image source
            have @c a x @c a dimensions and the image itself is a circle, with
            empty space around it:

            @image html image-fill.png
            @image rtf image-fill.png
            @image latex image-fill.eps

            @warning The default values for the fill parameters are @p x = 0,
            @p y = 0, @p w = 0 and @p h = 0. Thus, if you're not using the
            evas_object_image_filled_add() helper and want your image
            displayed, you'll have to set valid values with this function on
            your object.

            @note evas_object_image_filled_set() is a helper function which
            will @b override the values set here automatically, for you, in a
            given way. */
         }
         get {
            /*@
            Retrieve how an image object is to fill its drawing rectangle,
            given the (real) image bound to it.

            @note Use @c NULL pointers on the fill components you're not
            interested in: they'll be ignored by the function.

            See @ref evas_object_image_fill_set() for more details. */
         }
         values {
            Evas_Coord x; /*@ The x coordinate (from the top left corner of the bound
            image) to start drawing from. */
            Evas_Coord y; /*@ The y coordinate (from the top left corner of the bound
            image) to start drawing from. */
            Evas_Coord w; /*@ The width the bound image will be displayed at. */
            Evas_Coord h; /*@ The height the bound image will be displayed at. */
         }
      }
   }
   implements {
      Eo.Base.constructor;
      Efl.File.file.set;
      Efl.File.file.get;
   }
}