efl/src/lib/elementary/elm_app_server.eo

108 lines
2.7 KiB
Plaintext
Raw Normal View History

2016-04-19 08:39:25 -07:00
import eina_types;
2016-04-19 08:54:50 -07:00
import elm_general;
2016-04-19 08:39:25 -07:00
type Elm_App_Server_Create_View_Cb: __undefined_type;
class Elm.App.Server (Eo.Base)
2014-03-19 02:01:17 -07:00
{
eo_prefix: elm_app_server;
2015-05-07 09:32:53 -07:00
methods {
@property icon {
2014-03-19 02:01:17 -07:00
set {
}
get {
}
values {
2016-04-19 08:39:25 -07:00
icon: Eina.Stringshare *; [[title of icon]]
2014-03-19 02:01:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property views {
2014-03-19 02:01:17 -07:00
get {
[[Return a iterator with all views of application]]
2014-03-19 02:01:17 -07:00
}
values {
ret: free(own(iterator<Elm.App.Server.View *> *), eina_iterator_free); [[Iterator with all views of application, you must free iterator after use]]
2014-03-19 02:01:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property path {
2014-03-19 02:01:17 -07:00
get {
}
values {
ret: const(char)*;
2014-03-19 02:01:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property package {
2014-03-19 02:01:17 -07:00
get {
}
values {
2016-04-19 08:39:25 -07:00
ret: Eina.Stringshare *;
2014-03-19 02:01:17 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property pixels {
2014-03-19 02:01:17 -07:00
get {
[[Get application raw icon.]]
2014-03-19 02:01:17 -07:00
}
set {
[[Set icon to application, using the raw pixels of image.]]
2014-03-19 02:01:17 -07:00
}
values {
w: uint;
h: uint;
has_alpha: bool;
pixels: const(ubyte)*;
2014-03-19 02:01:17 -07:00
}
}
2014-09-01 07:57:56 -07:00
constructor {
[[Class constructor of elm_app_server]]
legacy: null;
params {
@in packageid: const(char)*; [[package of application]]
2015-09-18 20:43:09 -07:00
@in create_view_cb: Elm_App_Server_Create_View_Cb; [[callback to be called when user wants to open some application view]]
}
}
2014-03-19 02:01:17 -07:00
close_all {
[[Close all views of application]]
2014-03-19 02:01:17 -07:00
}
view_check {
[[If view id is available and unique, return the full DBus object path of view]]
2014-03-19 02:01:17 -07:00
params {
@in id: const(char)*; [[view identifier]]
2014-03-19 02:01:17 -07:00
}
return: bool; [[true if id is valid or false if not]]
2014-03-19 02:01:17 -07:00
}
view_add {
[[Add a view to elm_app_server. This should only be
used if the application open a view that was not
requested by create_view_cb.
]]
2014-03-19 02:01:17 -07:00
params {
@in view: Elm.App.Server.View *; [[elm_app_server_view]]
2014-03-19 02:01:17 -07:00
}
}
title_set {
[[Set a title to application.]]
2014-03-19 02:01:17 -07:00
params {
@in title: const(char)* @nullable; [[title of application]]
2014-03-19 02:01:17 -07:00
}
}
title_get {
[[Get title of application]]
2016-04-19 08:39:25 -07:00
return: Eina.Stringshare *; [[title of application]]
2014-03-19 02:01:17 -07:00
}
save {
[[Save the state of all views]]
2014-03-19 02:01:17 -07:00
}
}
implements {
Eo.Base.destructor;
Eo.Base.finalize;
2014-03-19 02:01:17 -07:00
}
2014-09-01 07:57:56 -07:00
constructors {
.constructor;
}
2014-03-19 02:01:17 -07:00
events {
terminate; [[Called when application must be terminated.]]
2014-03-19 02:01:17 -07:00
}
}