summaryrefslogtreecommitdiff
path: root/src/lib/elm_app_client_view.eo
blob: df84dd5e4eeee8b5723776528d571f400d9bc281 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
class Elm_App_Client_View (Eo.Base)
{
   legacy_prefix: null;
   eo_prefix: elm_app_client_view;
   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: const(char) *;
        }
      }
      @property path {
         get {
            /*@ Get DBus path of view */
         }
         values {
            ret: Eina_Stringshare *; /*@ DBus path of view */
         }
      }
      @property package {
         get {
            /*@ Get application package */
         }
         values {
            ret: const(char)*; /*@ Package of application */
         }
      }
      @property icon {
         get {
            /*@ Get icon path of view */
         }
         values {
            ret: const(char)*; /*@ 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: const(char)*; /*@ 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)* @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)* @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)* @optional; /*@ callback user data */
         }
      }
   }
   implements {
      Eo.Base.destructor;
      Eo.Base.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. */
   }

}