summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 19:30:30 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit1f242afdefd27cc11eb71bc598f4e7903ceb5ea9 (patch)
treebd3bc5074c4982334d1ff46d17d686b5ab0bbe32 /src/lib/efl
parent686366a03b2352f81d6ea4a79c6608d1bd5e1590 (diff)
evas: Use Eina.Size2D for gfx.buffer
For consistency.
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_buffer.eo19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_buffer.eo b/src/lib/efl/interfaces/efl_gfx_buffer.eo
index 9da3b4110b..f355a79e6b 100644
--- a/src/lib/efl/interfaces/efl_gfx_buffer.eo
+++ b/src/lib/efl/interfaces/efl_gfx_buffer.eo
@@ -24,8 +24,7 @@ interface Efl.Gfx.Buffer ()
24 } 24 }
25 get {} 25 get {}
26 values { 26 values {
27 w: int; [[Width in pixels.]] 27 sz: Eina.Size2D; [[Size of the buffer in pixels.]]
28 h: int; [[Height in pixels.]]
29 } 28 }
30 } 29 }
31 @property colorspace { 30 @property colorspace {
@@ -96,10 +95,7 @@ interface Efl.Gfx.Buffer ()
96 image object to be updated (redrawn) at the next rendering cycle. 95 image object to be updated (redrawn) at the next rendering cycle.
97 ]] 96 ]]
98 params { 97 params {
99 @in x: int; [[X-offset of the region to be updated.]] 98 @in region: const(ptr(Eina.Rect)) @optional; [[The updated region.]]
100 @in y: int; [[Y-offset of the region to be updated.]]
101 @in w: int; [[Width of the region to be updated.]]
102 @in h: int; [[Height of the region to be updated.]]
103 } 99 }
104 } 100 }
105 101
@@ -136,10 +132,7 @@ interface Efl.Gfx.Buffer ()
136 @out slice: Eina.Rw_Slice; [[Pointer to the top-left pixel data.]] 132 @out slice: Eina.Rw_Slice; [[Pointer to the top-left pixel data.]]
137 @in mode: Efl.Gfx.Buffer.Access_Mode; [[Specifies whether to map for read-only, 133 @in mode: Efl.Gfx.Buffer.Access_Mode; [[Specifies whether to map for read-only,
138 write-only or read-write access (OR combination of flags).]] 134 write-only or read-write access (OR combination of flags).]]
139 @in x: int @optional; [[X position of the top-left pixel to map, defaults to 0.]] 135 @in region: const(ptr(Eina.Rect)) @optional; [[The region to map.]]
140 @in y: int @optional; [[Y position of the top-left pixel to map, defaults to 0.]]
141 @in w: int @optional; [[If 0, defaults to the buffer width.]]
142 @in h: int @optional; [[If 0, defaults to the buffer height.]]
143 @in cspace: Efl.Gfx.Colorspace @optional; [[Requested colorspace. If different from the internal cspace, 136 @in cspace: Efl.Gfx.Colorspace @optional; [[Requested colorspace. If different from the internal cspace,
144 map should try to convert the data into a new buffer. 137 map should try to convert the data into a new buffer.
145 argb8888 by default.]] 138 argb8888 by default.]]
@@ -182,8 +175,7 @@ interface Efl.Gfx.Buffer ()
182 ]] 175 ]]
183 params { 176 params {
184 @in slice: ptr(const(Eina.Slice)) @nullable; [[If $null, allocates an empty buffer]] 177 @in slice: ptr(const(Eina.Slice)) @nullable; [[If $null, allocates an empty buffer]]
185 @in width: int; [[Width]] 178 @in size: Eina.Size2D; [[The size in pixels.]]
186 @in height: int; [[Height]]
187 @in stride: int @optional; [[If 0, automatically guessed from the $width.]] 179 @in stride: int @optional; [[If 0, automatically guessed from the $width.]]
188 @in cspace: Efl.Gfx.Colorspace @optional; [[argb8888 by default.]] 180 @in cspace: Efl.Gfx.Colorspace @optional; [[argb8888 by default.]]
189 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]] 181 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]]
@@ -208,8 +200,7 @@ interface Efl.Gfx.Buffer ()
208 ]] 200 ]]
209 params { 201 params {
210 @in slice: ptr(const(Eina.Slice)) @nullable; [[If $null, detaches the previous buffer.]] 202 @in slice: ptr(const(Eina.Slice)) @nullable; [[If $null, detaches the previous buffer.]]
211 @in width: int; [[Width]] 203 @in size: Eina.Size2D; [[The size in pixels.]]
212 @in height: int; [[Height]]
213 @in stride: int @optional; [[If 0, automatically guessed from the $width.]] 204 @in stride: int @optional; [[If 0, automatically guessed from the $width.]]
214 @in cspace: Efl.Gfx.Colorspace @optional; [[argb8888 by default.]] 205 @in cspace: Efl.Gfx.Colorspace @optional; [[argb8888 by default.]]
215 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]] 206 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]]