efl/src/lib/elementary/elm_app_server.eo

108 lines
2.6 KiB
Plaintext

import eina_types;
import elm_general;
type Elm_App_Server_Create_View_Cb: __undefined_type;
class Elm.App.Server (Eo.Base)
{
eo_prefix: elm_app_server;
methods {
@property icon {
set {
}
get {
}
values {
icon: stringshare; [[title of icon]]
}
}
@property views {
get {
[[Return a iterator with all views of application]]
}
values {
ret: free(own(iterator<Elm.App.Server.View>), eina_iterator_free); [[Iterator with all views of application, you must free iterator after use]]
}
}
@property path {
get {
}
values {
ret: string;
}
}
@property package {
get {
}
values {
ret: stringshare;
}
}
@property pixels {
get {
[[Get application raw icon.]]
}
set {
[[Set icon to application, using the raw pixels of image.]]
}
values {
w: uint;
h: uint;
has_alpha: bool;
pixels: const(ubyte)*;
}
}
constructor {
[[Class constructor of elm_app_server]]
legacy: null;
params {
@in packageid: string; [[package of application]]
@in create_view_cb: Elm_App_Server_Create_View_Cb; [[callback to be called when user wants to open some application view]]
}
}
close_all {
[[Close all views of application]]
}
view_check {
[[If view id is available and unique, return the full DBus object path of view]]
params {
@in id: string; [[view identifier]]
}
return: bool; [[true if id is valid or false if not]]
}
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.
]]
params {
@in view: Elm.App.Server.View; [[elm_app_server_view]]
}
}
title_set {
[[Set a title to application.]]
params {
@in title: string @nullable; [[title of application]]
}
}
title_get {
[[Get title of application]]
return: stringshare; [[title of application]]
}
save {
[[Save the state of all views]]
}
}
implements {
Eo.Base.destructor;
Eo.Base.finalize;
}
constructors {
.constructor;
}
events {
terminate; [[Called when application must be terminated.]]
}
}