efl/src/lib/elementary/elm_app_client_view.eo

130 lines
3.3 KiB
Plaintext
Raw Normal View History

import elm_general;
type Elm_App_Client_View_Cb: __undefined_type;
class Elm.App.Client.View (Efl.Object)
2014-03-18 08:37:44 -07:00
{
2015-05-07 09:32:53 -07:00
methods {
@property state {
2014-03-18 08:37:44 -07:00
get {
[[Get state of view]]
2014-03-18 08:37:44 -07:00
}
values {
state: Elm.App.View_State; [[state of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property new_events {
2014-03-18 08:37:44 -07:00
get {
[[Get new events of view]]
2014-03-18 08:37:44 -07:00
}
values {
events: int; [[number of events of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property window {
2014-03-18 08:37:44 -07:00
get {
[[Get window of view]]
2014-03-18 08:37:44 -07:00
}
values {
window: int; [[window of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property icon_pixels {
2014-03-18 08:37:44 -07:00
get {
[[Get icon pixels of view, view could have a icon
in raw format not saved in disk.
]]
2014-03-18 08:37:44 -07:00
}
values {
w: uint; [[icon width]]
h: uint; [[icon height]]
has_alpha: bool; [[if icon have alpha channel]]
pixels: const(ubyte)*; [[uchar array, with all bytes of icon]]
2014-03-18 08:37:44 -07:00
}
}
path_set {
params {
path: string;
}
}
2015-05-07 09:32:53 -07:00
@property path {
2014-03-18 08:37:44 -07:00
get {
[[Get DBus path of view]]
2014-03-18 08:37:44 -07:00
}
values {
ret: stringshare; [[DBus path of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property package {
2014-03-18 08:37:44 -07:00
get {
[[Get application package]]
2014-03-18 08:37:44 -07:00
}
values {
ret: string; [[Package of application]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property icon {
2014-03-18 08:37:44 -07:00
get {
[[Get icon path of view]]
2014-03-18 08:37:44 -07:00
}
values {
ret: string; [[icon path of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property progress {
2014-03-18 08:37:44 -07:00
get {
[[Get progress of view, should be -1 if there nothing in progress
or something between 0-100
]]
2014-03-18 08:37:44 -07:00
}
values {
progress: ushort; [[progress of view]]
2014-03-18 08:37:44 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property title {
2014-03-18 08:37:44 -07:00
get {
[[Get title of view]]
2014-03-18 08:37:44 -07:00
}
values {
ret: string; [[title of view]]
2014-03-18 08:37:44 -07:00
}
}
pause {
[[Pause view]]
2014-03-18 08:37:44 -07:00
params {
@in cb: Elm_App_Client_View_Cb @optional; [[callback to be called when view was paused ]]
@in data: const(void_ptr) @optional; [[callback user data]]
2014-03-18 08:37:44 -07:00
}
}
resume {
[[Resume view]]
2014-03-18 08:37:44 -07:00
params {
@in cb: Elm_App_Client_View_Cb @optional; [[callback to be called when view was resumed]]
@in data: const(void_ptr) @optional; [[callback user data]]
2014-03-18 08:37:44 -07:00
}
}
close {
[[Close view]]
2014-03-18 08:37:44 -07:00
params {
@in cb: Elm_App_Client_View_Cb @optional; [[callback to be called when view was closed]]
@in data: const(void_ptr) @optional; [[callback user data]]
2014-03-18 08:37:44 -07:00
}
}
}
implements {
Efl.Object.destructor;
Efl.Object.finalize;
2014-09-01 07:57:56 -07:00
}
2014-03-18 08:37:44 -07:00
events {
state,changed; [[State of view changed.]]
title,changed; [[Title of view changed.]]
icon,changed; [[Icon of view changed.]]
icon,pixels,changed; [[Icons pixels of view changed.]]
new_events,changed; [[New events of view changed.]]
progress,changed; [[Progress of view changed.]]
window,changed; [[Window of view changed.]]
property,changed; [[One of view properties changed.]]
2014-03-18 08:37:44 -07:00
}
}