2018-02-27 04:19:17 -08:00
|
|
|
import efl_types;
|
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.App extends Efl.Loop implements Efl.Core.Command_Line
|
2018-02-27 04:19:17 -08:00
|
|
|
{
|
|
|
|
[[ ]]
|
2019-01-25 00:57:54 -08:00
|
|
|
data: null;
|
2018-02-27 04:19:17 -08:00
|
|
|
methods {
|
2018-12-19 11:02:08 -08:00
|
|
|
@property app_main @class {
|
|
|
|
[[ Returns the app object that is representing this process
|
|
|
|
|
|
|
|
Note: This function call only works in the main loop thread of the process.
|
|
|
|
]]
|
2018-02-27 04:19:17 -08:00
|
|
|
get {}
|
|
|
|
values {
|
2018-12-19 11:02:08 -08:00
|
|
|
app : Efl.App; [[Application for this process]]
|
2018-02-27 04:19:17 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property build_efl_version {
|
|
|
|
[[ Indicates the version of EFL with which this application was
|
|
|
|
compiled against/for.
|
|
|
|
|
|
|
|
This might differ from @.efl_version.
|
|
|
|
]]
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
@cref version: Efl.Version; [[Efl version]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property efl_version {
|
|
|
|
[[ Indicates the currently running version of EFL.
|
|
|
|
|
|
|
|
This might differ from @.build_efl_version.
|
|
|
|
]]
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
@cref version: Efl.Version; [[Efl version]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
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
|
|
|
pause: void; [[Called when the application is not going be displayed or otherwise used by a user for some time]]
|
|
|
|
resume: void; [[Called before a window is rendered after a pause event]]
|
2019-01-10 12:48:10 -08:00
|
|
|
standby: void; [[Called when the application's windows are all destroyed]]
|
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
|
|
|
terminate: void; [[Called before starting the shutdown of the application]]
|
|
|
|
signal,usr1: void; [[System specific, but on unix maps to SIGUSR1 signal to the process - only called on main loop object]]
|
|
|
|
signal,usr2: void; [[System specific, but on unix maps to SIGUSR2 signal to the process - only called on main loop object]]
|
|
|
|
signal,hup: void; [[System specific, but on unix maps to SIGHUP signal to the process - only called on main loop object]]
|
2018-02-27 04:19:17 -08:00
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Task.priority { get; set; }
|
|
|
|
}
|
|
|
|
}
|