efl/src/lib/elementary/elm_app_client.eo

69 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-04-19 08:44:33 -07:00
import eina_types;
type Elm_App_Client_Open_View_Cb: __undefined_type;
type Elm_App_Client_Pending: __undefined_type;
class Elm.App.Client (Eo.Base)
2014-03-18 07:40:24 -07:00
{
2015-05-07 09:32:53 -07:00
methods {
@property views {
2014-03-18 07:40:24 -07:00
get {
[[Return a iterator with all views of application.]]
2014-03-18 07:40:24 -07:00
}
values {
ret: free(own(iterator<Elm.App.Client.View>), eina_iterator_free); [[The iterator with all views, must be freed after use.]]
2014-03-18 07:40:24 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property package {
2014-03-18 07:40:24 -07:00
get {
[[Return the application package.]]
2014-03-18 07:40:24 -07:00
}
values {
ret: string; [[application package]]
2014-03-18 07:40:24 -07:00
}
}
2014-09-01 07:57:56 -07:00
constructor {
[[Class constructor of elm_app_client.]]
legacy: null;
params {
@in package: string; [[Package of application]]
}
}
2014-03-18 07:40:24 -07:00
view_all_close {
[[Close all views of application.]]
2014-03-18 07:40:24 -07:00
}
terminate {
[[Terminate application.]]
2014-03-18 07:40:24 -07:00
}
view_open {
[[Open an application view.]]
2014-03-18 07:40:24 -07:00
params {
@in args: generic_value * @optional; [[an array of.]]
@in view_open_cb: Elm_App_Client_Open_View_Cb @optional; [[callback to be called when view open]]
@in data: const(void_ptr) @optional; [[callback user data]]
2014-03-18 07:40:24 -07:00
}
return: Elm_App_Client_Pending *; [[handler to cancel the view opening if it takes to long ]]
2014-03-18 07:40:24 -07:00
}
view_open_cancel {
[[Cancel a pending elm_app_client_view_open().]]
2014-03-18 07:40:24 -07:00
params {
@in pending: Elm_App_Client_Pending *; [[the view open handler]]
2014-03-18 07:40:24 -07:00
}
}
}
implements {
Eo.Base.destructor;
Eo.Base.finalize;
2014-03-18 07:40:24 -07:00
}
2014-09-01 07:57:56 -07:00
constructors {
.constructor;
}
2014-03-18 07:40:24 -07:00
events {
view,created; [[Called when a view of this application is created.]]
view,deleted; [[Called when a view of this application is deleted.]]
view_list,loaded; [[Called when list of view is loaded.]]
application,terminated; [[Called when application is terminated.]]
2014-03-18 07:40:24 -07:00
}
}