efl/src/lib/elementary/elm_app_client_view.eo

130 lines
3.3 KiB
Plaintext

import elm_general;
type Elm_App_Client_View_Cb: __undefined_type;
class Elm.App.Client.View (Efl.Object)
{
methods {
@property state {
get {
[[Get state of view]]
}
values {
state: Elm.App.View_State; [[state of view]]
}
}
@property new_events {
get {
[[Get new events of view]]
}
values {
events: int; [[number of events of view]]
}
}
@property window {
get {
[[Get window of view]]
}
values {
window: int; [[window of view]]
}
}
@property icon_pixels {
get {
[[Get icon pixels of view, view could have a icon
in raw format not saved in disk.
]]
}
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]]
}
}
path_set {
params {
path: string;
}
}
@property path {
get {
[[Get DBus path of view]]
}
values {
ret: stringshare; [[DBus path of view]]
}
}
@property package {
get {
[[Get application package]]
}
values {
ret: string; [[Package of application]]
}
}
@property icon {
get {
[[Get icon path of view]]
}
values {
ret: string; [[icon path of view]]
}
}
@property progress {
get {
[[Get progress of view, should be -1 if there nothing in progress
or something between 0-100
]]
}
values {
progress: ushort; [[progress of view]]
}
}
@property title {
get {
[[Get title of view]]
}
values {
ret: string; [[title of view]]
}
}
pause {
[[Pause view]]
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]]
}
}
resume {
[[Resume view]]
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]]
}
}
close {
[[Close view]]
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]]
}
}
}
implements {
Efl.Object.destructor;
Efl.Object.finalize;
}
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.]]
}
}