Release 0.6.0
[vala-lang.git] / vapi / libwnck-1.0.vapi
blob1d3ed752da35b853122228d0ea4ef6678e181e2a
1 /* libwnck-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Wnck", lower_case_cprefix = "wnck_")]
4 namespace Wnck {
5         [CCode (cheader_filename = "libwnck/libwnck.h")]
6         public class ActionMenu : Gtk.Menu, Atk.Implementor, Gtk.Buildable {
7                 [CCode (type = "GtkWidget*", has_construct_function = false)]
8                 public ActionMenu (Wnck.Window window);
9                 [NoWrapper]
10                 public virtual void pad1 ();
11                 [NoWrapper]
12                 public virtual void pad2 ();
13                 [NoWrapper]
14                 public virtual void pad3 ();
15                 [NoWrapper]
16                 public virtual void pad4 ();
17                 [NoAccessorMethod]
18                 public void* window { get; construct; }
19         }
20         [CCode (cheader_filename = "libwnck/libwnck.h")]
21         public class Application : GLib.Object {
22                 public static unowned Wnck.Application get (ulong xwindow);
23                 public unowned Gdk.Pixbuf get_icon ();
24                 public bool get_icon_is_fallback ();
25                 public unowned string get_icon_name ();
26                 public unowned Gdk.Pixbuf get_mini_icon ();
27                 public int get_n_windows ();
28                 public unowned string get_name ();
29                 public int get_pid ();
30                 public unowned string get_startup_id ();
31                 public unowned GLib.List get_windows ();
32                 public ulong get_xid ();
33                 [NoWrapper]
34                 public virtual void pad1 ();
35                 [NoWrapper]
36                 public virtual void pad2 ();
37                 [NoWrapper]
38                 public virtual void pad3 ();
39                 [NoWrapper]
40                 public virtual void pad4 ();
41                 public virtual signal void icon_changed ();
42                 public virtual signal void name_changed ();
43         }
44         [CCode (cheader_filename = "libwnck/libwnck.h")]
45         public class ClassGroup : GLib.Object {
46                 public static unowned Wnck.ClassGroup get (string res_class);
47                 public unowned Gdk.Pixbuf get_icon ();
48                 public unowned Gdk.Pixbuf get_mini_icon ();
49                 public unowned string get_name ();
50                 public unowned string get_res_class ();
51                 public unowned GLib.List get_windows ();
52                 [NoWrapper]
53                 public virtual void pad1 ();
54                 [NoWrapper]
55                 public virtual void pad2 ();
56                 [NoWrapper]
57                 public virtual void pad3 ();
58                 [NoWrapper]
59                 public virtual void pad4 ();
60                 public virtual signal void icon_changed ();
61                 public virtual signal void name_changed ();
62         }
63         [CCode (cheader_filename = "libwnck/libwnck.h")]
64         public class Pager : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
65                 [CCode (type = "GtkWidget*", has_construct_function = false)]
66                 public Pager (Wnck.Screen screen);
67                 [NoWrapper]
68                 public virtual void pad1 ();
69                 [NoWrapper]
70                 public virtual void pad2 ();
71                 [NoWrapper]
72                 public virtual void pad3 ();
73                 [NoWrapper]
74                 public virtual void pad4 ();
75                 public void set_display_mode (Wnck.PagerDisplayMode mode);
76                 public bool set_n_rows (int n_rows);
77                 public bool set_orientation (Gtk.Orientation orientation);
78                 public void set_screen (Wnck.Screen screen);
79                 public void set_shadow_type (Gtk.ShadowType shadow_type);
80                 public void set_show_all (bool show_all_workspaces);
81         }
82         [Compact]
83         [CCode (cheader_filename = "libwnck/libwnck.h")]
84         public class ResourceUsage {
85                 public uint n_colormap_entries;
86                 public uint n_cursors;
87                 public uint n_fonts;
88                 public uint n_gcs;
89                 public uint n_glyphsets;
90                 public uint n_other;
91                 public uint n_passive_grabs;
92                 public uint n_pictures;
93                 public uint n_pixmaps;
94                 public uint n_windows;
95                 public uint pad1;
96                 public uint pad2;
97                 public uint pad3;
98                 public uint pad4;
99                 public uint pad5;
100                 public uint pad6;
101                 public uint pad7;
102                 public uint pad8;
103                 public uint pad9;
104                 public ulong pixmap_bytes;
105                 public ulong total_bytes_estimate;
106         }
107         [CCode (cheader_filename = "libwnck/libwnck.h")]
108         public class Screen : GLib.Object {
109                 public void calc_workspace_layout (int num_workspaces, int space_index, Wnck.WorkspaceLayout layout);
110                 public void change_workspace_count (int count);
111                 public void force_update ();
112                 public static void free_workspace_layout (Wnck.WorkspaceLayout layout);
113                 public static unowned Wnck.Screen get (int index);
114                 public unowned Wnck.Window get_active_window ();
115                 public unowned Wnck.Workspace get_active_workspace ();
116                 public ulong get_background_pixmap ();
117                 public static unowned Wnck.Screen get_default ();
118                 public static unowned Wnck.Screen get_for_root (ulong root_window_id);
119                 public int get_height ();
120                 public int get_number ();
121                 public unowned Wnck.Window get_previously_active_window ();
122                 public bool get_showing_desktop ();
123                 public int get_width ();
124                 public unowned string get_window_manager_name ();
125                 public unowned GLib.List get_windows ();
126                 public unowned GLib.List get_windows_stacked ();
127                 public unowned Wnck.Workspace get_workspace (int workspace);
128                 public int get_workspace_count ();
129                 public int get_workspace_index (Wnck.Workspace space);
130                 public unowned Wnck.Workspace get_workspace_neighbor (Wnck.Workspace space, Wnck.MotionDirection direction);
131                 public unowned GLib.List get_workspaces ();
132                 public void move_viewport (int x, int y);
133                 public bool net_wm_supports (string atom);
134                 [NoWrapper]
135                 public virtual void pad2 ();
136                 [NoWrapper]
137                 public virtual void pad3 ();
138                 [NoWrapper]
139                 public virtual void pad4 ();
140                 [NoWrapper]
141                 public virtual void pad5 ();
142                 [NoWrapper]
143                 public virtual void pad6 ();
144                 public void release_workspace_layout (int current_token);
145                 public void toggle_showing_desktop (bool show);
146                 public int try_set_workspace_layout (int current_token, int rows, int columns);
147                 public virtual signal void active_window_changed (Wnck.Window previous_window);
148                 public virtual signal void active_workspace_changed (Wnck.Workspace previous_workspace);
149                 public virtual signal void application_closed (Wnck.Application app);
150                 public virtual signal void application_opened (Wnck.Application app);
151                 public virtual signal void background_changed ();
152                 public virtual signal void class_group_closed (Wnck.ClassGroup class_group);
153                 public virtual signal void class_group_opened (Wnck.ClassGroup class_group);
154                 public virtual signal void showing_desktop_changed ();
155                 public virtual signal void viewports_changed ();
156                 public virtual signal void window_closed (Wnck.Window window);
157                 public virtual signal void window_manager_changed ();
158                 public virtual signal void window_opened (Wnck.Window window);
159                 public virtual signal void window_stacking_changed ();
160                 public virtual signal void workspace_created (Wnck.Workspace space);
161                 public virtual signal void workspace_destroyed (Wnck.Workspace space);
162         }
163         [CCode (cheader_filename = "libwnck/libwnck.h")]
164         public class Selector : Gtk.MenuBar, Atk.Implementor, Gtk.Buildable {
165                 [CCode (type = "GtkWidget*", has_construct_function = false)]
166                 public Selector ();
167                 [NoWrapper]
168                 public virtual void pad1 ();
169                 [NoWrapper]
170                 public virtual void pad2 ();
171                 [NoWrapper]
172                 public virtual void pad3 ();
173                 [NoWrapper]
174                 public virtual void pad4 ();
175         }
176         [CCode (cheader_filename = "libwnck/libwnck.h")]
177         public class Tasklist : Gtk.Container, Atk.Implementor, Gtk.Buildable {
178                 public int get_minimum_height ();
179                 public int get_minimum_width ();
180                 public int get_size_hint_list (int n_elements);
181                 [CCode (type = "GtkWidget*", has_construct_function = false)]
182                 public Tasklist (Wnck.Screen screen);
183                 [NoWrapper]
184                 public virtual void pad1 ();
185                 [NoWrapper]
186                 public virtual void pad2 ();
187                 [NoWrapper]
188                 public virtual void pad3 ();
189                 [NoWrapper]
190                 public virtual void pad4 ();
191                 public void set_button_relief (Gtk.ReliefStyle relief);
192                 public void set_grouping (Wnck.TasklistGroupingType grouping);
193                 public void set_grouping_limit (int limit);
194                 public void set_icon_loader (Wnck.LoadIconFunction load_icon_func, void* data, GLib.DestroyNotify free_data_func);
195                 public void set_include_all_workspaces (bool include_all_workspaces);
196                 public void set_minimum_height (int size);
197                 public void set_minimum_width (int size);
198                 public void set_screen (Wnck.Screen screen);
199                 public void set_switch_workspace_on_unminimize (bool switch_workspace_on_unminimize);
200         }
201         [CCode (cheader_filename = "libwnck/libwnck.h")]
202         public class Window : GLib.Object {
203                 public void activate (uint32 timestamp);
204                 public void activate_transient (uint32 timestamp);
205                 public void close (uint32 timestamp);
206                 public static unowned Wnck.Window get (ulong xwindow);
207                 public Wnck.WindowActions get_actions ();
208                 public unowned Wnck.Application get_application ();
209                 public unowned Wnck.ClassGroup get_class_group ();
210                 public void get_client_window_geometry (int xp, int yp, int widthp, int heightp);
211                 public void get_geometry (int xp, int yp, int widthp, int heightp);
212                 public ulong get_group_leader ();
213                 public unowned Gdk.Pixbuf get_icon ();
214                 public bool get_icon_is_fallback ();
215                 public unowned string get_icon_name ();
216                 public unowned Gdk.Pixbuf get_mini_icon ();
217                 public unowned string get_name ();
218                 public int get_pid ();
219                 public unowned Wnck.Screen get_screen ();
220                 public unowned string get_session_id ();
221                 public unowned string get_session_id_utf8 ();
222                 public int get_sort_order ();
223                 public Wnck.WindowState get_state ();
224                 public unowned Wnck.Window get_transient ();
225                 public Wnck.WindowType get_window_type ();
226                 public unowned Wnck.Workspace get_workspace ();
227                 public ulong get_xid ();
228                 public bool has_icon_name ();
229                 public bool has_name ();
230                 public bool is_above ();
231                 public bool is_active ();
232                 public bool is_below ();
233                 public bool is_fullscreen ();
234                 public bool is_in_viewport (Wnck.Workspace workspace);
235                 public bool is_maximized ();
236                 public bool is_maximized_horizontally ();
237                 public bool is_maximized_vertically ();
238                 public bool is_minimized ();
239                 public bool is_most_recently_activated ();
240                 public bool is_on_workspace (Wnck.Workspace workspace);
241                 public bool is_pinned ();
242                 public bool is_shaded ();
243                 public bool is_skip_pager ();
244                 public bool is_skip_tasklist ();
245                 public bool is_sticky ();
246                 public bool is_visible_on_workspace (Wnck.Workspace workspace);
247                 public void keyboard_move ();
248                 public void keyboard_size ();
249                 public void make_above ();
250                 public void make_below ();
251                 public void maximize ();
252                 public void maximize_horizontally ();
253                 public void maximize_vertically ();
254                 public void minimize ();
255                 public void move_to_workspace (Wnck.Workspace space);
256                 public bool needs_attention ();
257                 public bool or_transient_needs_attention ();
258                 [NoWrapper]
259                 public virtual void pad1 ();
260                 [NoWrapper]
261                 public virtual void pad2 ();
262                 [NoWrapper]
263                 public virtual void pad3 ();
264                 [NoWrapper]
265                 public virtual void pad4 ();
266                 public void pin ();
267                 public void set_fullscreen (bool fullscreen);
268                 public void set_geometry (Wnck.WindowGravity gravity, Wnck.WindowMoveResizeMask geometry_mask, int x, int y, int width, int height);
269                 public void set_icon_geometry (int x, int y, int width, int height);
270                 public void set_skip_pager (bool skip);
271                 public void set_skip_tasklist (bool skip);
272                 public void set_sort_order (int order);
273                 public void set_window_type (Wnck.WindowType wintype);
274                 public void shade ();
275                 public void stick ();
276                 public bool transient_is_most_recently_activated ();
277                 public void unmake_above ();
278                 public void unmake_below ();
279                 public void unmaximize ();
280                 public void unmaximize_horizontally ();
281                 public void unmaximize_vertically ();
282                 public void unminimize (uint32 timestamp);
283                 public void unpin ();
284                 public void unshade ();
285                 public void unstick ();
286                 public virtual signal void actions_changed (Wnck.WindowActions changed_mask, Wnck.WindowActions new_actions);
287                 public virtual signal void geometry_changed ();
288                 public virtual signal void icon_changed ();
289                 public virtual signal void name_changed ();
290                 public virtual signal void state_changed (Wnck.WindowState changed_mask, Wnck.WindowState new_state);
291                 public virtual signal void workspace_changed ();
292         }
293         [CCode (cheader_filename = "libwnck/libwnck.h")]
294         public class Workspace : GLib.Object {
295                 public void activate (uint32 timestamp);
296                 public void change_name (string name);
297                 public int get_height ();
298                 public int get_layout_column ();
299                 public int get_layout_row ();
300                 public unowned string get_name ();
301                 public unowned Wnck.Workspace get_neighbor (Wnck.MotionDirection direction);
302                 public int get_number ();
303                 public unowned Wnck.Screen get_screen ();
304                 public int get_viewport_x ();
305                 public int get_viewport_y ();
306                 public int get_width ();
307                 public bool is_virtual ();
308                 [NoWrapper]
309                 public virtual void pad1 ();
310                 [NoWrapper]
311                 public virtual void pad2 ();
312                 [NoWrapper]
313                 public virtual void pad3 ();
314                 [NoWrapper]
315                 public virtual void pad4 ();
316                 public virtual signal void name_changed ();
317         }
318         [Compact]
319         [CCode (cheader_filename = "libwnck/libwnck.h")]
320         public class WorkspaceLayout {
321                 public int cols;
322                 public int current_col;
323                 public int current_row;
324                 public int grid;
325                 public int grid_area;
326                 public int rows;
327         }
328         [CCode (cprefix = "WNCK_CLIENT_TYPE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
329         public enum ClientType {
330                 APPLICATION,
331                 PAGER
332         }
333         [CCode (cprefix = "WNCK_MOTION_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
334         public enum MotionDirection {
335                 UP,
336                 DOWN,
337                 LEFT,
338                 RIGHT
339         }
340         [CCode (cprefix = "WNCK_PAGER_DISPLAY_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
341         public enum PagerDisplayMode {
342                 NAME,
343                 CONTENT
344         }
345         [CCode (cprefix = "WNCK_TASKLIST_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
346         public enum TasklistGroupingType {
347                 NEVER_GROUP,
348                 AUTO_GROUP,
349                 ALWAYS_GROUP
350         }
351         [CCode (cprefix = "WNCK_WINDOW_ACTION_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
352         [Flags]
353         public enum WindowActions {
354                 MOVE,
355                 RESIZE,
356                 SHADE,
357                 STICK,
358                 MAXIMIZE_HORIZONTALLY,
359                 MAXIMIZE_VERTICALLY,
360                 CHANGE_WORKSPACE,
361                 CLOSE,
362                 UNMAXIMIZE_HORIZONTALLY,
363                 UNMAXIMIZE_VERTICALLY,
364                 UNSHADE,
365                 UNSTICK,
366                 MINIMIZE,
367                 UNMINIMIZE,
368                 MAXIMIZE,
369                 UNMAXIMIZE,
370                 FULLSCREEN,
371                 ABOVE,
372                 BELOW
373         }
374         [CCode (cprefix = "WNCK_WINDOW_GRAVITY_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
375         public enum WindowGravity {
376                 CURRENT,
377                 NORTHWEST,
378                 NORTH,
379                 NORTHEAST,
380                 WEST,
381                 CENTER,
382                 EAST,
383                 SOUTHWEST,
384                 SOUTH,
385                 SOUTHEAST,
386                 STATIC
387         }
388         [CCode (cprefix = "WNCK_WINDOW_CHANGE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
389         [Flags]
390         public enum WindowMoveResizeMask {
391                 X,
392                 Y,
393                 WIDTH,
394                 HEIGHT
395         }
396         [CCode (cprefix = "WNCK_WINDOW_STATE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
397         [Flags]
398         public enum WindowState {
399                 MINIMIZED,
400                 MAXIMIZED_HORIZONTALLY,
401                 MAXIMIZED_VERTICALLY,
402                 SHADED,
403                 SKIP_PAGER,
404                 SKIP_TASKLIST,
405                 STICKY,
406                 HIDDEN,
407                 FULLSCREEN,
408                 DEMANDS_ATTENTION,
409                 URGENT,
410                 ABOVE,
411                 BELOW
412         }
413         [CCode (cprefix = "WNCK_WINDOW_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
414         public enum WindowType {
415                 NORMAL,
416                 DESKTOP,
417                 DOCK,
418                 DIALOG,
419                 TOOLBAR,
420                 MENU,
421                 UTILITY,
422                 SPLASHSCREEN
423         }
424         [CCode (cheader_filename = "libwnck/libwnck.h")]
425         public delegate unowned Gdk.Pixbuf LoadIconFunction (string icon_name, int size, uint flags);
426         [CCode (cheader_filename = "libwnck/libwnck.h")]
427         public static unowned Gtk.Widget create_window_action_menu (Wnck.Window window);
428         [CCode (cheader_filename = "libwnck/libwnck.h")]
429         public static void gtk_window_set_dock_type (Gtk.Window window);
430         [CCode (cheader_filename = "libwnck/libwnck.h")]
431         public static void pid_read_resource_usage (Gdk.Display gdk_display, ulong pid, Wnck.ResourceUsage usage);
432         [CCode (cheader_filename = "libwnck/libwnck.h")]
433         public static void set_client_type (Wnck.ClientType ewmh_sourceindication_client_type);
434         [CCode (cheader_filename = "libwnck/libwnck.h")]
435         public static void xid_read_resource_usage (Gdk.Display gdk_display, ulong xid, Wnck.ResourceUsage usage);