forked from enlightenment/efl
ector eo: fix indentation (tabs --> spaces)
Why? Why would an editor replace 8 spaces by a TAB? WHYYYYYY?
This commit is contained in:
parent
1f25b523b4
commit
9bd36f7c43
|
@ -4,9 +4,9 @@ abstract Ector.Renderer.Cairo.Base (Ector.Renderer.Generic.Base)
|
||||||
methods {
|
methods {
|
||||||
fill {
|
fill {
|
||||||
return: bool;
|
return: bool;
|
||||||
params {
|
params {
|
||||||
@in mul_col: uint;
|
@in mul_col: uint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
|
|
@ -25,100 +25,100 @@ mixin Ector.Generic.Buffer
|
||||||
legacy_prefix: null;
|
legacy_prefix: null;
|
||||||
methods {
|
methods {
|
||||||
@property size {
|
@property size {
|
||||||
get {
|
get {
|
||||||
[[Retrieves the (rectangular) size of the pixel buffer.]]
|
[[Retrieves the (rectangular) size of the pixel buffer.]]
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
w: int;
|
w: int;
|
||||||
h: int;
|
h: int;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property cspace {
|
@property cspace {
|
||||||
get {}
|
get {}
|
||||||
values {
|
values {
|
||||||
cspace: Efl.Gfx.Colorspace;
|
cspace: Efl.Gfx.Colorspace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map {
|
map {
|
||||||
[[Map a region of this buffer for read or write access by the CPU,
|
[[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
|
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
|
cpu_readable_fast or cpu_writeable_fast are not true, or if the
|
||||||
required colorspace is different from the internal one.
|
required colorspace is different from the internal one.
|
||||||
]]
|
]]
|
||||||
params {
|
params {
|
||||||
@out length: uint; [[Accessible buffer size in bytes, should not be $null.]]
|
@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,
|
@in mode: Ector.Buffer.Access_Flag; [[Specifies whether to map for read-only,
|
||||||
write-only or read-write access (OR combinaison of flags).]]
|
write-only or read-write access (OR combinaison of flags).]]
|
||||||
@in x: uint; [[X position of the top-left pixel to map]]
|
@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 y: uint; [[Y position of the top-left pixel to map]]
|
||||||
@in w: uint; [[If 0, defaults to the buffer width]]
|
@in w: uint; [[If 0, defaults to the buffer width]]
|
||||||
@in h: uint; [[If 0, defaults to the buffer height]]
|
@in h: uint; [[If 0, defaults to the buffer height]]
|
||||||
@in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace,
|
@in cspace: Efl.Gfx.Colorspace; [[Requested colorspace. If differen from the internal cspace,
|
||||||
map should try to convert the data into a new buffer]]
|
map should try to convert the data into a new buffer]]
|
||||||
@out stride: uint @optional; [[Returns the length in bytes of a mapped line]]
|
@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]]
|
return: void* @warn_unused; [[Pointer to the top-left pixel data. Returns $null in case of failure]]
|
||||||
}
|
}
|
||||||
unmap {
|
unmap {
|
||||||
[[Unmap a region of this buffer, and upload data to the GPU (if needed).]]
|
[[Unmap a region of this buffer, and upload data to the GPU (if needed).]]
|
||||||
params {
|
params {
|
||||||
@in data: void*; [[Data pointer returned by a previous call to map]]
|
@in data: void*; [[Data pointer returned by a previous call to map]]
|
||||||
@in length: uint; [[Must be the same as returned by map.]]
|
@in length: uint; [[Must be the same as returned by map.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pixels_set {
|
pixels_set {
|
||||||
[[Set the source pixels for this buffer, or allocate a new memory region]]
|
[[Set the source pixels for this buffer, or allocate a new memory region]]
|
||||||
params {
|
params {
|
||||||
@in pixels: void*; [[If $null, allocates an empty buffer]]
|
@in pixels: void*; [[If $null, allocates an empty buffer]]
|
||||||
@in width: int;
|
@in width: int;
|
||||||
@in height: int;
|
@in height: int;
|
||||||
@in stride: int; [[Can be 0]]
|
@in stride: int; [[Can be 0]]
|
||||||
@in cspace: Efl.Gfx.Colorspace;
|
@in cspace: Efl.Gfx.Colorspace;
|
||||||
@in writable: bool;
|
@in writable: bool;
|
||||||
@in l: ubyte; [[Left border pixels, usually 0 or 1]]
|
@in l: ubyte; [[Left border pixels, usually 0 or 1]]
|
||||||
@in r: ubyte; [[Right 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 t: ubyte; [[Top border pixels, usually 0 or 1]]
|
||||||
@in b: ubyte; [[Bottom border pixels, usually 0 or 1]]
|
@in b: ubyte; [[Bottom border pixels, usually 0 or 1]]
|
||||||
}
|
}
|
||||||
return: bool;
|
return: bool;
|
||||||
}
|
}
|
||||||
span_get {
|
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
|
Call span_free() to release it. This function will try not to
|
||||||
allocate any new buffer, whenever possible. This means the data
|
allocate any new buffer, whenever possible. This means the data
|
||||||
might be mapped directly from the backing memory buffer.
|
might be mapped directly from the backing memory buffer.
|
||||||
]]
|
]]
|
||||||
params {
|
params {
|
||||||
@in x: int; [[Ranges from -l to w+r-1]]
|
@in x: int; [[Ranges from -l to w+r-1]]
|
||||||
@in y: int; [[Ranges from -t to h+b-1]]
|
@in y: int; [[Ranges from -t to h+b-1]]
|
||||||
@in w: uint; [[Ranges from 1 to w+l+r]]
|
@in w: uint; [[Ranges from 1 to w+l+r]]
|
||||||
@in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]]
|
@in cspace: Efl.Gfx.Colorspace; [[Requested colorspace, may trigger conversion on the fly.]]
|
||||||
@out length: uint; [[Length in bytes of the returned buffer]]
|
@out length: uint; [[Length in bytes of the returned buffer]]
|
||||||
}
|
}
|
||||||
return: uint8*; [[A temporary memory buffer containing the pixels requested.]]
|
return: uint8*; [[A temporary memory buffer containing the pixels requested.]]
|
||||||
}
|
}
|
||||||
span_free {
|
span_free {
|
||||||
[[Must be called as soon as possible after span_get]]
|
[[Must be called as soon as possible after span_get]]
|
||||||
params {
|
params {
|
||||||
data: uint8*;
|
data: uint8*;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property flags {
|
@property flags {
|
||||||
get { [[Get the capabilities of this buffer]] }
|
get { [[Get the capabilities of this buffer]] }
|
||||||
values {
|
values {
|
||||||
flag: Ector.Buffer.Flag; [[A bitmask of capability flags]]
|
flag: Ector.Buffer.Flag; [[A bitmask of capability flags]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property border {
|
@property border {
|
||||||
[[Duplicated pixel borders of this buffer, used for GL scaling]]
|
[[Duplicated pixel borders of this buffer, used for GL scaling]]
|
||||||
get {}
|
get {}
|
||||||
values {
|
values {
|
||||||
l: int;
|
l: int;
|
||||||
r: int;
|
r: int;
|
||||||
t: int;
|
t: int;
|
||||||
b: int;
|
b: int;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
events {
|
events {
|
||||||
|
|
|
@ -7,17 +7,17 @@ mixin Ector.Generic.Surface (Ector.Generic.Buffer)
|
||||||
@property reference_point {
|
@property reference_point {
|
||||||
set {
|
set {
|
||||||
[[This define where is (0,0) in pixels coordinate inside the surface]]
|
[[This define where is (0,0) in pixels coordinate inside the surface]]
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
x: int;
|
x: int;
|
||||||
y: int;
|
y: int;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
renderer_factory_new {
|
renderer_factory_new {
|
||||||
return: Ector_Renderer *;
|
return: Ector_Renderer *;
|
||||||
params {
|
params {
|
||||||
@in type: const(Eo_Class) * @nonull;
|
@in type: const(Eo_Class) * @nonull;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
|
|
@ -3,11 +3,11 @@ class Ector.Renderer.Software.Buffer (Ector.Renderer.Software.Base, Ector.Render
|
||||||
legacy_prefix: null;
|
legacy_prefix: null;
|
||||||
methods {
|
methods {
|
||||||
@property buffer {
|
@property buffer {
|
||||||
set {}
|
set {}
|
||||||
get {}
|
get {}
|
||||||
values {
|
values {
|
||||||
buf: Ector.Generic.Buffer *;
|
buf: Ector.Generic.Buffer *;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
|
|
@ -5,7 +5,7 @@ mixin Ector.Software.Buffer.Base (Ector.Generic.Buffer)
|
||||||
legacy_prefix: null;
|
legacy_prefix: null;
|
||||||
methods {
|
methods {
|
||||||
pixels_clear @protected {
|
pixels_clear @protected {
|
||||||
[[Clear internal pixel buffer]]
|
[[Clear internal pixel buffer]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
|
|
@ -5,12 +5,12 @@ interface Evas.Ector.Buffer
|
||||||
legacy_prefix: null;
|
legacy_prefix: null;
|
||||||
methods {
|
methods {
|
||||||
@property engine_image {
|
@property engine_image {
|
||||||
get {}
|
get {}
|
||||||
set { [[This Buffer will hold a reference to the evas image struct.]] }
|
set { [[This Buffer will hold a reference to the evas image struct.]] }
|
||||||
values {
|
values {
|
||||||
evas: Evas *; [[The current Evas.]]
|
evas: Evas *; [[The current Evas.]]
|
||||||
image: void *; [[The engine-specific image struct.]]
|
image: void *; [[The engine-specific image struct.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue