From 9bd36f7c434f6700979f61bf73d34734b1cd52f8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 14 Dec 2015 15:52:02 +0900 Subject: [PATCH] ector eo: fix indentation (tabs --> spaces) Why? Why would an editor replace 8 spaces by a TAB? WHYYYYYY? --- .../ector/cairo/ector_renderer_cairo_base.eo | 6 +- src/lib/ector/ector_generic_buffer.eo | 154 +++++++++--------- src/lib/ector/ector_generic_surface.eo | 16 +- .../ector_renderer_software_buffer.eo | 10 +- .../software/ector_software_buffer_base.eo | 2 +- src/lib/evas/include/evas_ector_buffer.eo | 12 +- 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) methods { fill { return: bool; - params { - @in mul_col: uint; - } + params { + @in mul_col: uint; + } } } 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 legacy_prefix: null; methods { @property size { - get { - [[Retrieves the (rectangular) size of the pixel buffer.]] - } - values { - w: int; - h: int; - } + get { + [[Retrieves the (rectangular) size of the pixel buffer.]] + } + values { + w: int; + h: int; + } } @property cspace { - get {} - values { - cspace: Efl.Gfx.Colorspace; - } + get {} + values { + cspace: Efl.Gfx.Colorspace; + } } map { - [[Map a region of this buffer for read or write access by the CPU, - fetch data from the GPU if needed. This operation may be slow if - cpu_readable_fast or cpu_writeable_fast are not true, or if the - required colorspace is different from the internal one. - ]] - params { - @out length: uint; [[Accessible buffer size in bytes, should not be $null.]] - @in mode: Ector.Buffer.Access_Flag; [[Specifies whether to map for read-only, - write-only or read-write access (OR combinaison of flags).]] - @in x: uint; [[X position of the top-left pixel to map]] - @in y: uint; [[Y position of the top-left pixel to map]] - @in w: uint; [[If 0, defaults to the buffer width]] - @in h: uint; [[If 0, defaults to the buffer height]] - @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace, - map should try to convert the data into a new buffer]] - @out stride: uint @optional; [[Returns the length in bytes of a mapped line]] - } - return: void* @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]] + [[Map a region of this buffer for read or write access by the CPU, + fetch data from the GPU if needed. This operation may be slow if + cpu_readable_fast or cpu_writeable_fast are not true, or if the + required colorspace is different from the internal one. + ]] + params { + @out length: uint; [[Accessible buffer size in bytes, should not be $null.]] + @in mode: Ector.Buffer.Access_Flag; [[Specifies whether to map for read-only, + write-only or read-write access (OR combinaison of flags).]] + @in x: uint; [[X position of the top-left pixel to map]] + @in y: uint; [[Y position of the top-left pixel to map]] + @in w: uint; [[If 0, defaults to the buffer width]] + @in h: uint; [[If 0, defaults to the buffer height]] + @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace, + map should try to convert the data into a new buffer]] + @out stride: uint @optional; [[Returns the length in bytes of a mapped line]] + } + return: void* @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]] } unmap { - [[Unmap a region of this buffer, and upload data to the GPU (if needed).]] - params { - @in data: void*; [[Data pointer returned by a previous call to map]] - @in length: uint; [[Must be the same as returned by map.]] - } + [[Unmap a region of this buffer, and upload data to the GPU (if needed).]] + params { + @in data: void*; [[Data pointer returned by a previous call to map]] + @in length: uint; [[Must be the same as returned by map.]] + } } pixels_set { - [[Set the source pixels for this buffer, or allocate a new memory region]] - params { - @in pixels: void*; [[If $null, allocates an empty buffer]] - @in width: int; - @in height: int; - @in stride: int; [[Can be 0]] - @in cspace: Efl.Gfx.Colorspace; - @in writable: bool; - @in l: ubyte; [[Left border pixels, usually 0 or 1]] - @in r: ubyte; [[Right border pixels, usually 0 or 1]] - @in t: ubyte; [[Top border pixels, usually 0 or 1]] - @in b: ubyte; [[Bottom border pixels, usually 0 or 1]] - } - return: bool; + [[Set the source pixels for this buffer, or allocate a new memory region]] + params { + @in pixels: void*; [[If $null, allocates an empty buffer]] + @in width: int; + @in height: int; + @in stride: int; [[Can be 0]] + @in cspace: Efl.Gfx.Colorspace; + @in writable: bool; + @in l: ubyte; [[Left border pixels, usually 0 or 1]] + @in r: ubyte; [[Right border pixels, usually 0 or 1]] + @in t: ubyte; [[Top border pixels, usually 0 or 1]] + @in b: ubyte; [[Bottom border pixels, usually 0 or 1]] + } + return: bool; } span_get { - [[Get a single horizontal span of length w starting from (x,y) + [[Get a single horizontal span of length w starting from (x,y) - Call span_free() to release it. This function will try not to - allocate any new buffer, whenever possible. This means the data - might be mapped directly from the backing memory buffer. - ]] - params { - @in x: int; [[Ranges from -l to w+r-1]] - @in y: int; [[Ranges from -t to h+b-1]] - @in w: uint; [[Ranges from 1 to w+l+r]] - @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]] - @out length: uint; [[Length in bytes of the returned buffer]] - } - return: uint8*; [[A temporary memory buffer containing the pixels requested.]] + Call span_free() to release it. This function will try not to + allocate any new buffer, whenever possible. This means the data + might be mapped directly from the backing memory buffer. + ]] + params { + @in x: int; [[Ranges from -l to w+r-1]] + @in y: int; [[Ranges from -t to h+b-1]] + @in w: uint; [[Ranges from 1 to w+l+r]] + @in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]] + @out length: uint; [[Length in bytes of the returned buffer]] + } + return: uint8*; [[A temporary memory buffer containing the pixels requested.]] } span_free { - [[Must be called as soon as possible after span_get]] - params { - data: uint8*; - } + [[Must be called as soon as possible after span_get]] + params { + data: uint8*; + } } @property flags { - get { [[Get the capabilities of this buffer]] } - values { - flag: Ector.Buffer.Flag; [[A bitmask of capability flags]] - } + get { [[Get the capabilities of this buffer]] } + values { + flag: Ector.Buffer.Flag; [[A bitmask of capability flags]] + } } @property border { - [[Duplicated pixel borders of this buffer, used for GL scaling]] - get {} - values { - l: int; - r: int; - t: int; - b: int; - } + [[Duplicated pixel borders of this buffer, used for GL scaling]] + get {} + values { + l: int; + r: int; + t: int; + b: int; + } } } 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) @property reference_point { set { [[This define where is (0,0) in pixels coordinate inside the surface]] - } - values { - x: int; - y: int; - } + } + values { + x: int; + y: int; + } } renderer_factory_new { return: Ector_Renderer *; - params { - @in type: const(Eo_Class) * @nonull; - } + params { + @in type: const(Eo_Class) * @nonull; + } } } 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 legacy_prefix: null; methods { @property buffer { - set {} - get {} - values { - buf: Ector.Generic.Buffer *; - } + set {} + get {} + values { + buf: Ector.Generic.Buffer *; + } } } 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) legacy_prefix: null; methods { pixels_clear @protected { - [[Clear internal pixel buffer]] + [[Clear internal pixel buffer]] } } 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 legacy_prefix: null; methods { @property engine_image { - get {} - set { [[This Buffer will hold a reference to the evas image struct.]] } - values { - evas: Evas *; [[The current Evas.]] - image: void *; [[The engine-specific image struct.]] - } + get {} + set { [[This Buffer will hold a reference to the evas image struct.]] } + values { + evas: Evas *; [[The current Evas.]] + image: void *; [[The engine-specific image struct.]] + } } } }