summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-14 15:52:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-05 15:43:43 +0900
commit9bd36f7c434f6700979f61bf73d34734b1cd52f8 (patch)
treeba1ace40159a2e8cd5d6460c039bbc10a0516ca2 /src
parent1f25b523b462309534e2fd8e59ffb62747cc6224 (diff)
ector eo: fix indentation (tabs --> spaces)
Why? Why would an editor replace 8 spaces by a TAB? WHYYYYYY?
Diffstat (limited to 'src')
-rw-r--r--src/lib/ector/cairo/ector_renderer_cairo_base.eo6
-rw-r--r--src/lib/ector/ector_generic_buffer.eo154
-rw-r--r--src/lib/ector/ector_generic_surface.eo16
-rw-r--r--src/lib/ector/software/ector_renderer_software_buffer.eo10
-rw-r--r--src/lib/ector/software/ector_software_buffer_base.eo2
-rw-r--r--src/lib/evas/include/evas_ector_buffer.eo12
6 files changed, 100 insertions, 100 deletions
diff --git a/src/lib/ector/cairo/ector_renderer_cairo_base.eo b/src/lib/ector/cairo/ector_renderer_cairo_base.eo
index 0132c2e36d..374594c177 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_base.eo
+++ b/src/lib/ector/cairo/ector_renderer_cairo_base.eo
@@ -4,9 +4,9 @@ abstract Ector.Renderer.Cairo.Base (Ector.Renderer.Generic.Base)
4 methods { 4 methods {
5 fill { 5 fill {
6 return: bool; 6 return: bool;
7 params { 7 params {
8 @in mul_col: uint; 8 @in mul_col: uint;
9 } 9 }
10 } 10 }
11 } 11 }
12 implements { 12 implements {
diff --git a/src/lib/ector/ector_generic_buffer.eo b/src/lib/ector/ector_generic_buffer.eo
index d16fec4d10..ae9a87c0ee 100644
--- a/src/lib/ector/ector_generic_buffer.eo
+++ b/src/lib/ector/ector_generic_buffer.eo
@@ -25,100 +25,100 @@ mixin Ector.Generic.Buffer
25 legacy_prefix: null; 25 legacy_prefix: null;
26 methods { 26 methods {
27 @property size { 27 @property size {
28 get { 28 get {
29 [[Retrieves the (rectangular) size of the pixel buffer.]] 29 [[Retrieves the (rectangular) size of the pixel buffer.]]
30 } 30 }
31 values { 31 values {
32 w: int; 32 w: int;
33 h: int; 33 h: int;
34 } 34 }
35 } 35 }
36 @property cspace { 36 @property cspace {
37 get {} 37 get {}
38 values { 38 values {
39 cspace: Efl.Gfx.Colorspace; 39 cspace: Efl.Gfx.Colorspace;
40 } 40 }
41 } 41 }
42 map { 42 map {
43 [[Map a region of this buffer for read or write access by the CPU, 43 [[Map a region of this buffer for read or write access by the CPU,
44 fetch data from the GPU if needed. This operation may be slow if 44 fetch data from the GPU if needed. This operation may be slow if
45 cpu_readable_fast or cpu_writeable_fast are not true, or if the 45 cpu_readable_fast or cpu_writeable_fast are not true, or if the
46 required colorspace is different from the internal one. 46 required colorspace is different from the internal one.
47 ]] 47 ]]
48 params { 48 params {
49 @out length: uint; [[Accessible buffer size in bytes, should not be $null.]] 49 @out length: uint; [[Accessible buffer size in bytes, should not be $null.]]
50 @in mode: Ector.Buffer.Access_Flag; [[Specifies whether to map for read-only, 50 @in mode: Ector.Buffer.Access_Flag; [[Specifies whether to map for read-only,
51 write-only or read-write access (OR combinaison of flags).]] 51 write-only or read-write access (OR combinaison of flags).]]
52 @in x: uint; [[X position of the top-left pixel to map]] 52 @in x: uint; [[X position of the top-left pixel to map]]
53 @in y: uint; [[Y position of the top-left pixel to map]] 53 @in y: uint; [[Y position of the top-left pixel to map]]
54 @in w: uint; [[If 0, defaults to the buffer width]] 54 @in w: uint; [[If 0, defaults to the buffer width]]
55 @in h: uint; [[If 0, defaults to the buffer height]] 55 @in h: uint; [[If 0, defaults to the buffer height]]
56 @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace, 56 @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace,
57 map should try to convert the data into a new buffer]] 57 map should try to convert the data into a new buffer]]
58 @out stride: uint @optional; [[Returns the length in bytes of a mapped line]] 58 @out stride: uint @optional; [[Returns the length in bytes of a mapped line]]
59 } 59 }
60 return: void* @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]] 60 return: void* @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]]
61 } 61 }
62 unmap { 62 unmap {
63 [[Unmap a region of this buffer, and upload data to the GPU (if needed).]] 63 [[Unmap a region of this buffer, and upload data to the GPU (if needed).]]
64 params { 64 params {
65 @in data: void*; [[Data pointer returned by a previous call to map]] 65 @in data: void*; [[Data pointer returned by a previous call to map]]
66 @in length: uint; [[Must be the same as returned by map.]] 66 @in length: uint; [[Must be the same as returned by map.]]
67 } 67 }
68 } 68 }
69 pixels_set { 69 pixels_set {
70 [[Set the source pixels for this buffer, or allocate a new memory region]] 70 [[Set the source pixels for this buffer, or allocate a new memory region]]
71 params { 71 params {
72 @in pixels: void*; [[If $null, allocates an empty buffer]] 72 @in pixels: void*; [[If $null, allocates an empty buffer]]
73 @in width: int; 73 @in width: int;
74 @in height: int; 74 @in height: int;
75 @in stride: int; [[Can be 0]] 75 @in stride: int; [[Can be 0]]
76 @in cspace: Efl.Gfx.Colorspace; 76 @in cspace: Efl.Gfx.Colorspace;
77 @in writable: bool; 77 @in writable: bool;
78 @in l: ubyte; [[Left border pixels, usually 0 or 1]] 78 @in l: ubyte; [[Left border pixels, usually 0 or 1]]
79 @in r: ubyte; [[Right border pixels, usually 0 or 1]] 79 @in r: ubyte; [[Right border pixels, usually 0 or 1]]
80 @in t: ubyte; [[Top border pixels, usually 0 or 1]] 80 @in t: ubyte; [[Top border pixels, usually 0 or 1]]
81 @in b: ubyte; [[Bottom border pixels, usually 0 or 1]] 81 @in b: ubyte; [[Bottom border pixels, usually 0 or 1]]
82 } 82 }
83 return: bool; 83 return: bool;
84 } 84 }
85 span_get { 85 span_get {
86 [[Get a single horizontal span of length w starting from (x,y) 86 [[Get a single horizontal span of length w starting from (x,y)
87 87
88 Call span_free() to release it. This function will try not to 88 Call span_free() to release it. This function will try not to
89 allocate any new buffer, whenever possible. This means the data 89 allocate any new buffer, whenever possible. This means the data
90 might be mapped directly from the backing memory buffer. 90 might be mapped directly from the backing memory buffer.
91 ]] 91 ]]
92 params { 92 params {
93 @in x: int; [[Ranges from -l to w+r-1]] 93 @in x: int; [[Ranges from -l to w+r-1]]
94 @in y: int; [[Ranges from -t to h+b-1]] 94 @in y: int; [[Ranges from -t to h+b-1]]
95 @in w: uint; [[Ranges from 1 to w+l+r]] 95 @in w: uint; [[Ranges from 1 to w+l+r]]
96 @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]] 96 @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]]
97 @out length: uint; [[Length in bytes of the returned buffer]] 97 @out length: uint; [[Length in bytes of the returned buffer]]
98 } 98 }
99 return: uint8*; [[A temporary memory buffer containing the pixels requested.]] 99 return: uint8*; [[A temporary memory buffer containing the pixels requested.]]
100 } 100 }
101 span_free { 101 span_free {
102 [[Must be called as soon as possible after span_get]] 102 [[Must be called as soon as possible after span_get]]
103 params { 103 params {
104 data: uint8*; 104 data: uint8*;
105 } 105 }
106 } 106 }
107 @property flags { 107 @property flags {
108 get { [[Get the capabilities of this buffer]] } 108 get { [[Get the capabilities of this buffer]] }
109 values { 109 values {
110 flag: Ector.Buffer.Flag; [[A bitmask of capability flags]] 110 flag: Ector.Buffer.Flag; [[A bitmask of capability flags]]
111 } 111 }
112 } 112 }
113 @property border { 113 @property border {
114 [[Duplicated pixel borders of this buffer, used for GL scaling]] 114 [[Duplicated pixel borders of this buffer, used for GL scaling]]
115 get {} 115 get {}
116 values { 116 values {
117 l: int; 117 l: int;
118 r: int; 118 r: int;
119 t: int; 119 t: int;
120 b: int; 120 b: int;
121 } 121 }
122 } 122 }
123 } 123 }
124 events { 124 events {
diff --git a/src/lib/ector/ector_generic_surface.eo b/src/lib/ector/ector_generic_surface.eo
index cb05c6d3d5..438296eb01 100644
--- a/src/lib/ector/ector_generic_surface.eo
+++ b/src/lib/ector/ector_generic_surface.eo
@@ -7,17 +7,17 @@ mixin Ector.Generic.Surface (Ector.Generic.Buffer)
7 @property reference_point { 7 @property reference_point {
8 set { 8 set {
9 [[This define where is (0,0) in pixels coordinate inside the surface]] 9 [[This define where is (0,0) in pixels coordinate inside the surface]]
10 } 10 }
11 values { 11 values {
12 x: int; 12 x: int;
13 y: int; 13 y: int;
14 } 14 }
15 } 15 }
16 renderer_factory_new { 16 renderer_factory_new {
17 return: Ector_Renderer *; 17 return: Ector_Renderer *;
18 params { 18 params {
19 @in type: const(Eo_Class) * @nonull; 19 @in type: const(Eo_Class) * @nonull;
20 } 20 }
21 } 21 }
22 } 22 }
23 implements { 23 implements {
diff --git a/src/lib/ector/software/ector_renderer_software_buffer.eo b/src/lib/ector/software/ector_renderer_software_buffer.eo
index 14c45ad522..e7f2207765 100644
--- a/src/lib/ector/software/ector_renderer_software_buffer.eo
+++ b/src/lib/ector/software/ector_renderer_software_buffer.eo
@@ -3,11 +3,11 @@ class Ector.Renderer.Software.Buffer (Ector.Renderer.Software.Base, Ector.Render
3 legacy_prefix: null; 3 legacy_prefix: null;
4 methods { 4 methods {
5 @property buffer { 5 @property buffer {
6 set {} 6 set {}
7 get {} 7 get {}
8 values { 8 values {
9 buf: Ector.Generic.Buffer *; 9 buf: Ector.Generic.Buffer *;
10 } 10 }
11 } 11 }
12 } 12 }
13 implements { 13 implements {
diff --git a/src/lib/ector/software/ector_software_buffer_base.eo b/src/lib/ector/software/ector_software_buffer_base.eo
index d10df04f1d..2ada74dc83 100644
--- a/src/lib/ector/software/ector_software_buffer_base.eo
+++ b/src/lib/ector/software/ector_software_buffer_base.eo
@@ -5,7 +5,7 @@ mixin Ector.Software.Buffer.Base (Ector.Generic.Buffer)
5 legacy_prefix: null; 5 legacy_prefix: null;
6 methods { 6 methods {
7 pixels_clear @protected { 7 pixels_clear @protected {
8 [[Clear internal pixel buffer]] 8 [[Clear internal pixel buffer]]
9 } 9 }
10 } 10 }
11 implements { 11 implements {
diff --git a/src/lib/evas/include/evas_ector_buffer.eo b/src/lib/evas/include/evas_ector_buffer.eo
index 7dbb5e0842..cb9421534f 100644
--- a/src/lib/evas/include/evas_ector_buffer.eo
+++ b/src/lib/evas/include/evas_ector_buffer.eo
@@ -5,12 +5,12 @@ interface Evas.Ector.Buffer
5 legacy_prefix: null; 5 legacy_prefix: null;
6 methods { 6 methods {
7 @property engine_image { 7 @property engine_image {
8 get {} 8 get {}
9 set { [[This Buffer will hold a reference to the evas image struct.]] } 9 set { [[This Buffer will hold a reference to the evas image struct.]] }
10 values { 10 values {
11 evas: Evas *; [[The current Evas.]] 11 evas: Evas *; [[The current Evas.]]
12 image: void *; [[The engine-specific image struct.]] 12 image: void *; [[The engine-specific image struct.]]
13 } 13 }
14 } 14 }
15 } 15 }
16} 16}