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 {
|
||||
fill {
|
||||
return: bool;
|
||||
params {
|
||||
@in mul_col: uint;
|
||||
}
|
||||
params {
|
||||
@in mul_col: uint;
|
||||
}
|
||||
}
|
||||
}
|
||||
implements {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.]]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue