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