2015-05-29 03:31:05 -07:00
|
|
|
/* FIXME: Move to Eina when we decide they are handled properly. */
|
2017-09-22 07:08:56 -07:00
|
|
|
struct @extern @free(eina_rectangle_free) Eina.Rect {
|
2017-09-13 19:59:44 -07:00
|
|
|
[[A rectangle in pixel dimensions.]]
|
|
|
|
x: int; [[X coordinate of the rectangle, from the top-left corner.]]
|
|
|
|
y: int; [[Y coordinate of the rectangle, from the top-left corner.]]
|
|
|
|
w: int; [[Width of the rectangle in pixels.]]
|
|
|
|
h: int; [[Height of the rectangle in pixels.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
struct @extern Eina.Position2D {
|
|
|
|
[[A 2D location in pixels.]]
|
|
|
|
x: int; [[X position in pixels, from the top-left corner.]]
|
|
|
|
y: int; [[Y position in pixels, from the top-left corner.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
struct @extern Eina.Size2D {
|
|
|
|
[[A 2D size in pixels.]]
|
|
|
|
w: int; [[X position in pixels, from the top-left corner.]]
|
|
|
|
h: int; [[Y position in pixels, from the top-left corner.]]
|
2015-05-29 06:20:11 -07:00
|
|
|
}
|
2016-10-27 07:52:00 -07:00
|
|
|
|
|
|
|
struct @extern Eina.File; [[Eina file data structure]]
|
2016-02-12 06:39:50 -08:00
|
|
|
|
2017-09-18 04:42:52 -07:00
|
|
|
struct @extern Eina.Vector2 {
|
|
|
|
[[A simple 2D vector type using floating point values.]]
|
|
|
|
x: double; [[X coordinate.]]
|
|
|
|
y: double; [[Y coordinate.]]
|
|
|
|
}
|
|
|
|
|
2016-02-17 01:58:12 -08:00
|
|
|
struct @extern Eina.Matrix3 {
|
2016-10-20 08:29:36 -07:00
|
|
|
[[Eina 3x3 Matrix]]
|
|
|
|
xx: double; [[XX matrix value]]
|
|
|
|
xy: double; [[XY matrix value]]
|
|
|
|
xz: double; [[XZ matrix value]]
|
|
|
|
|
|
|
|
yx: double; [[YX matrix value]]
|
|
|
|
yy: double; [[YY matrix value]]
|
|
|
|
yz: double; [[YZ matrix value]]
|
|
|
|
|
|
|
|
zx: double; [[ZX matrix value]]
|
|
|
|
zy: double; [[ZY matrix value]]
|
|
|
|
zz: double; [[ZZ matrix value]]
|
2016-02-12 06:39:50 -08:00
|
|
|
}
|
2016-02-17 02:00:11 -08:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
type @extern @beta Eina.Unicode: uint32; [[Eina unicode type]]
|
2016-04-12 12:00:23 -07:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta Eina.File_Direct_Info; [[Eina file direct information data structure]]
|
2016-04-12 12:00:23 -07:00
|
|
|
/*{
|
|
|
|
path_lenght: size_t; [[Size of the whole path]]
|
|
|
|
name_length: size_t; [[Size of the filename/basename component]]
|
|
|
|
name_start: size_t; [[Start position of the filename/basename component]]
|
|
|
|
type: Eina_File_Type; [[File type]]
|
|
|
|
path: char[EINA_PATH_MAX]; [[The path]]
|
|
|
|
};*/
|
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
enum @extern @beta Eina.Xattr.Flags {
|
2016-10-20 08:29:36 -07:00
|
|
|
[[Eina file extended attributes flags]]
|
2016-04-12 12:00:23 -07:00
|
|
|
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]]
|
|
|
|
created [[This will only succeed if the extended attribute wasn't previously set]]
|
|
|
|
}
|
|
|
|
|
2016-11-03 03:54:47 -07:00
|
|
|
type @extern Eina.Error: int; [[Eina error type]]
|
2016-08-16 09:11:12 -07:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta @free(eina_binbuf_free) Eina.Binbuf; [[Eina binbuf data structure]]
|
|
|
|
struct @extern @beta @free(eina_strbuf_free) Eina.Strbuf; [[Eina strbuf data structure]]
|
2016-08-12 13:08:38 -07:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta Eina.Slice {
|
2016-08-12 13:08:38 -07:00
|
|
|
[[A linear, read-only, memory segment]]
|
2016-10-20 08:29:36 -07:00
|
|
|
len: size; [[Length of the memory segment]]
|
|
|
|
mem: const(void_ptr); [[Pointer to memory segment]]
|
2016-08-12 13:08:38 -07:00
|
|
|
}
|
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta Eina.Rw_Slice {
|
2016-08-12 13:08:38 -07:00
|
|
|
[[A linear, read-write, memory segment]]
|
2016-10-20 08:29:36 -07:00
|
|
|
len: size; [[Length of the memory segment]]
|
|
|
|
mem: void_ptr; [[Pointer to memory segment]]
|
2016-08-12 13:08:38 -07:00
|
|
|
}
|
2017-01-31 12:17:58 -08:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta Eina.Value; [[Eina value placeholder so it can be referenced from docs.]]
|
|
|
|
struct @extern @beta Eina.Value_Type; [[Eina value type]]
|
2018-05-03 08:13:28 -07:00
|
|
|
|
2019-07-10 16:22:42 -07:00
|
|
|
struct @extern @beta Eina.Stat {
|
2018-05-03 08:13:28 -07:00
|
|
|
[[The structure to store some file statistics.]]
|
|
|
|
dev : ulong; [[The device where this file is located]]
|
|
|
|
ino : ulong; [[The inode]]
|
|
|
|
mode : uint; [[The mode]]
|
|
|
|
nlink : uint; [[The link number]]
|
|
|
|
uid : uint; [[The owner user id]]
|
|
|
|
gid : uint; [[The owner group id]]
|
|
|
|
rdev : ulong; [[The remote device]]
|
|
|
|
size : ulong; [[The file size in bytes]]
|
|
|
|
blksize : ulong; [[The block size in bytes]]
|
|
|
|
blocks : ulong; [[The number of blocks allocated]]
|
|
|
|
atime : ulong; [[The tilestamp when the file was last accessed]]
|
|
|
|
atimensec: ulong; [[The nano version of the timestmap when the file was last accessed]]
|
|
|
|
mtime : ulong; [[The tilestamp when the file was modified]]
|
|
|
|
mtimensec: ulong; [[The nano version of the timestmap when the file was modified]]
|
|
|
|
ctime : ulong; [[The tilestamp when the file was created]]
|
|
|
|
ctimensec: ulong; [[The nano version of the timestmap when the file was created]]
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
}
|
|
|
|
|
2019-01-14 11:28:45 -08:00
|
|
|
struct @extern @free(eina_promise_free) Eina.Promise; [[Eina promise type]]
|
2018-12-26 09:47:47 -08:00
|
|
|
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
/* FIXME: This definitely shouldn't be here. */
|
2019-07-10 16:22:42 -07:00
|
|
|
type @beta Efl.Event_Cb: __undefined_type; [[Efl event callback type]]
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
|