docs: eina_types: add descriptions for some structs for these eina beta api's

This commit is contained in:
Stefan Schmidt 2016-10-20 17:29:36 +02:00
parent 4e7b9ae7ba
commit d29bb3bbec
1 changed files with 20 additions and 17 deletions

View File

@ -1,24 +1,26 @@
/* FIXME: Move to Eina when we decide they are handled properly. */ /* FIXME: Move to Eina when we decide they are handled properly. */
struct @extern Eina.Rectangle { struct @extern Eina.Rectangle {
x: int; [[Eina Rectangle]]
y: int; x: int; [[X coordinate of the rectangle]]
w: int; y: int; [[Y coordinate of the rectangle]]
h: int; w: int; [[Width of the rectangle]]
h: int; [[Height of the rectangle]]
} }
struct @extern Eina.File; struct @extern Eina.File;
struct @extern Eina.Matrix3 { struct @extern Eina.Matrix3 {
xx: double; [[Eina 3x3 Matrix]]
xy: double; xx: double; [[XX matrix value]]
xz: double; xy: double; [[XY matrix value]]
xz: double; [[XZ matrix value]]
yx: double; yx: double; [[YX matrix value]]
yy: double; yy: double; [[YY matrix value]]
yz: double; yz: double; [[YZ matrix value]]
zx: double; zx: double; [[ZX matrix value]]
zy: double; zy: double; [[ZY matrix value]]
zz: double; zz: double; [[ZZ matrix value]]
} }
struct @extern Eina.Inarray; struct @extern Eina.Inarray;
@ -35,6 +37,7 @@ struct @extern Eina.File.Direct.Info;
};*/ };*/
enum @extern Eina.Xattr.Flags { enum @extern Eina.Xattr.Flags {
[[Eina file extended attributes flags]]
insert, [[This is the default behaviour, it will either create or replace the extended attribute]] insert, [[This is the default behaviour, it will either create or replace the extended attribute]]
replace, [[This will only succeed if the extended attribute previously existed]] replace, [[This will only succeed if the extended attribute previously existed]]
created [[This will only succeed if the extended attribute wasn't previously set]] created [[This will only succeed if the extended attribute wasn't previously set]]
@ -46,12 +49,12 @@ struct @extern @free(eina_binbuf_free) Eina.Binbuf;
struct @extern Eina.Slice { struct @extern Eina.Slice {
[[A linear, read-only, memory segment]] [[A linear, read-only, memory segment]]
len: size; len: size; [[Length of the memory segment]]
mem: const(void_ptr); mem: const(void_ptr); [[Pointer to memory segment]]
} }
struct @extern Eina.Rw_Slice { struct @extern Eina.Rw_Slice {
[[A linear, read-write, memory segment]] [[A linear, read-write, memory segment]]
len: size; len: size; [[Length of the memory segment]]
mem: void_ptr; mem: void_ptr; [[Pointer to memory segment]]
} }