1 /* libwnck-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Wnck", lower_case_cprefix = "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);
10 public virtual void pad1 ();
12 public virtual void pad2 ();
14 public virtual void pad3 ();
16 public virtual void pad4 ();
18 public void* window { get; construct; }
20 [CCode (cheader_filename = "libwnck/libwnck.h")]
21 public class Application : GLib.Object {
22 [CCode (has_construct_function = false)]
23 protected Application ();
24 public static unowned Wnck.Application @get (ulong xwindow);
25 public unowned Gdk.Pixbuf get_icon ();
26 public bool get_icon_is_fallback ();
27 public unowned string get_icon_name ();
28 public unowned Gdk.Pixbuf get_mini_icon ();
29 public int get_n_windows ();
30 public unowned string get_name ();
31 public int get_pid ();
32 public unowned string get_startup_id ();
33 public unowned GLib.List get_windows ();
34 public ulong get_xid ();
36 public virtual void pad1 ();
38 public virtual void pad2 ();
40 public virtual void pad3 ();
42 public virtual void pad4 ();
43 public virtual signal void icon_changed ();
44 public virtual signal void name_changed ();
46 [CCode (cheader_filename = "libwnck/libwnck.h")]
47 public class ClassGroup : GLib.Object {
48 [CCode (has_construct_function = false)]
49 protected ClassGroup ();
50 public static unowned Wnck.ClassGroup @get (string res_class);
51 public unowned Gdk.Pixbuf get_icon ();
52 public unowned Gdk.Pixbuf get_mini_icon ();
53 public unowned string get_name ();
54 public unowned string get_res_class ();
55 public unowned GLib.List get_windows ();
57 public virtual void pad1 ();
59 public virtual void pad2 ();
61 public virtual void pad3 ();
63 public virtual void pad4 ();
64 public virtual signal void icon_changed ();
65 public virtual signal void name_changed ();
67 [CCode (cheader_filename = "libwnck/libwnck.h")]
68 public class Pager : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
69 [CCode (type = "GtkWidget*", has_construct_function = false)]
70 public Pager (Wnck.Screen screen);
72 public virtual void pad1 ();
74 public virtual void pad2 ();
76 public virtual void pad3 ();
78 public virtual void pad4 ();
79 public void set_display_mode (Wnck.PagerDisplayMode mode);
80 public bool set_n_rows (int n_rows);
81 public bool set_orientation (Gtk.Orientation orientation);
82 public void set_screen (Wnck.Screen screen);
83 public void set_shadow_type (Gtk.ShadowType shadow_type);
84 public void set_show_all (bool show_all_workspaces);
87 [CCode (cheader_filename = "libwnck/libwnck.h")]
88 public class ResourceUsage {
89 public uint n_colormap_entries;
90 public uint n_cursors;
93 public uint n_glyphsets;
95 public uint n_passive_grabs;
96 public uint n_pictures;
97 public uint n_pixmaps;
98 public uint n_windows;
108 public ulong pixmap_bytes;
109 public ulong total_bytes_estimate;
111 [CCode (cheader_filename = "libwnck/libwnck.h")]
112 public class Screen : GLib.Object {
113 [CCode (has_construct_function = false)]
115 public void calc_workspace_layout (int num_workspaces, int space_index, Wnck.WorkspaceLayout layout);
116 public void change_workspace_count (int count);
117 public void force_update ();
118 public static void free_workspace_layout (Wnck.WorkspaceLayout layout);
119 public static unowned Wnck.Screen @get (int index);
120 public unowned Wnck.Window get_active_window ();
121 public unowned Wnck.Workspace get_active_workspace ();
122 public ulong get_background_pixmap ();
123 public static unowned Wnck.Screen get_default ();
124 public static unowned Wnck.Screen get_for_root (ulong root_window_id);
125 public int get_height ();
126 public int get_number ();
127 public unowned Wnck.Window get_previously_active_window ();
128 public bool get_showing_desktop ();
129 public int get_width ();
130 public unowned string get_window_manager_name ();
131 public unowned GLib.List<Wnck.Window> get_windows ();
132 public unowned GLib.List get_windows_stacked ();
133 public unowned Wnck.Workspace get_workspace (int workspace);
134 public int get_workspace_count ();
135 public int get_workspace_index (Wnck.Workspace space);
136 public unowned Wnck.Workspace get_workspace_neighbor (Wnck.Workspace space, Wnck.MotionDirection direction);
137 public unowned GLib.List<Wnck.Workspace> get_workspaces ();
138 public void move_viewport (int x, int y);
139 public bool net_wm_supports (string atom);
141 public virtual void pad2 ();
143 public virtual void pad3 ();
145 public virtual void pad4 ();
147 public virtual void pad5 ();
149 public virtual void pad6 ();
150 public void release_workspace_layout (int current_token);
151 public void toggle_showing_desktop (bool show);
152 public int try_set_workspace_layout (int current_token, int rows, int columns);
153 public virtual signal void active_window_changed (Wnck.Window? previous_window);
154 public virtual signal void active_workspace_changed (Wnck.Workspace? previous_workspace);
155 public virtual signal void application_closed (Wnck.Application app);
156 public virtual signal void application_opened (Wnck.Application app);
157 public virtual signal void background_changed ();
158 public virtual signal void class_group_closed (Wnck.ClassGroup class_group);
159 public virtual signal void class_group_opened (Wnck.ClassGroup class_group);
160 public virtual signal void showing_desktop_changed ();
161 public virtual signal void viewports_changed ();
162 public virtual signal void window_closed (Wnck.Window window);
163 public virtual signal void window_manager_changed ();
164 public virtual signal void window_opened (Wnck.Window window);
165 public virtual signal void window_stacking_changed ();
166 public virtual signal void workspace_created (Wnck.Workspace space);
167 public virtual signal void workspace_destroyed (Wnck.Workspace space);
169 [CCode (cheader_filename = "libwnck/libwnck.h")]
170 public class Selector : Gtk.MenuBar, Atk.Implementor, Gtk.Buildable {
171 [CCode (type = "GtkWidget*", has_construct_function = false)]
174 public virtual void pad1 ();
176 public virtual void pad2 ();
178 public virtual void pad3 ();
180 public virtual void pad4 ();
182 [CCode (cheader_filename = "libwnck/libwnck.h")]
183 public class Tasklist : Gtk.Container, Atk.Implementor, Gtk.Buildable {
184 [CCode (type = "GtkWidget*", has_construct_function = false)]
185 public Tasklist (Wnck.Screen screen);
186 public int get_minimum_height ();
187 public int get_minimum_width ();
188 public int get_size_hint_list (int n_elements);
190 public virtual void pad1 ();
192 public virtual void pad2 ();
194 public virtual void pad3 ();
196 public virtual void pad4 ();
197 public void set_button_relief (Gtk.ReliefStyle relief);
198 public void set_grouping (Wnck.TasklistGroupingType grouping);
199 public void set_grouping_limit (int limit);
200 public void set_icon_loader (Wnck.LoadIconFunction load_icon_func, void* data, GLib.DestroyNotify free_data_func);
201 public void set_include_all_workspaces (bool include_all_workspaces);
202 public void set_minimum_height (int size);
203 public void set_minimum_width (int size);
204 public void set_orientation (Gtk.Orientation orient);
205 public void set_screen (Wnck.Screen screen);
206 public void set_switch_workspace_on_unminimize (bool switch_workspace_on_unminimize);
208 [CCode (cheader_filename = "libwnck/libwnck.h")]
209 public class Window : GLib.Object {
210 [CCode (has_construct_function = false)]
212 public void activate (uint32 timestamp);
213 public void activate_transient (uint32 timestamp);
214 public void close (uint32 timestamp);
215 public static unowned Wnck.Window @get (ulong xwindow);
216 public Wnck.WindowActions get_actions ();
217 public unowned Wnck.Application get_application ();
218 public unowned Wnck.ClassGroup get_class_group ();
219 public void get_client_window_geometry (int xp, int yp, int widthp, int heightp);
220 public void get_geometry (out int xp, out int yp, out int widthp, out int heightp);
221 public ulong get_group_leader ();
222 public unowned Gdk.Pixbuf get_icon ();
223 public bool get_icon_is_fallback ();
224 public unowned string get_icon_name ();
225 public unowned Gdk.Pixbuf get_mini_icon ();
226 public unowned string get_name ();
227 public int get_pid ();
228 public unowned Wnck.Screen get_screen ();
229 public unowned string get_session_id ();
230 public unowned string get_session_id_utf8 ();
231 public int get_sort_order ();
232 public Wnck.WindowState get_state ();
233 public unowned Wnck.Window get_transient ();
234 public Wnck.WindowType get_window_type ();
235 public unowned Wnck.Workspace get_workspace ();
236 public ulong get_xid ();
237 public bool has_icon_name ();
238 public bool has_name ();
239 public bool is_above ();
240 public bool is_active ();
241 public bool is_below ();
242 public bool is_fullscreen ();
243 public bool is_in_viewport (Wnck.Workspace workspace);
244 public bool is_maximized ();
245 public bool is_maximized_horizontally ();
246 public bool is_maximized_vertically ();
247 public bool is_minimized ();
248 public bool is_most_recently_activated ();
249 public bool is_on_workspace (Wnck.Workspace workspace);
250 public bool is_pinned ();
251 public bool is_shaded ();
252 public bool is_skip_pager ();
253 public bool is_skip_tasklist ();
254 public bool is_sticky ();
255 public bool is_visible_on_workspace (Wnck.Workspace workspace);
256 public void keyboard_move ();
257 public void keyboard_size ();
258 public void make_above ();
259 public void make_below ();
260 public void maximize ();
261 public void maximize_horizontally ();
262 public void maximize_vertically ();
263 public void minimize ();
264 public void move_to_workspace (Wnck.Workspace space);
265 public bool needs_attention ();
266 public bool or_transient_needs_attention ();
268 public virtual void pad1 ();
270 public virtual void pad2 ();
272 public virtual void pad3 ();
274 public virtual void pad4 ();
276 public void set_fullscreen (bool fullscreen);
277 public void set_geometry (Wnck.WindowGravity gravity, Wnck.WindowMoveResizeMask geometry_mask, int x, int y, int width, int height);
278 public void set_icon_geometry (int x, int y, int width, int height);
279 public void set_skip_pager (bool skip);
280 public void set_skip_tasklist (bool skip);
281 public void set_sort_order (int order);
282 public void set_window_type (Wnck.WindowType wintype);
283 public void shade ();
284 public void stick ();
285 public bool transient_is_most_recently_activated ();
286 public void unmake_above ();
287 public void unmake_below ();
288 public void unmaximize ();
289 public void unmaximize_horizontally ();
290 public void unmaximize_vertically ();
291 public void unminimize (uint32 timestamp);
292 public void unpin ();
293 public void unshade ();
294 public void unstick ();
295 public virtual signal void actions_changed (Wnck.WindowActions changed_mask, Wnck.WindowActions new_actions);
296 public virtual signal void geometry_changed ();
297 public virtual signal void icon_changed ();
298 public virtual signal void name_changed ();
299 public virtual signal void state_changed (Wnck.WindowState changed_mask, Wnck.WindowState new_state);
300 public virtual signal void workspace_changed ();
302 [CCode (cheader_filename = "libwnck/libwnck.h")]
303 public class Workspace : GLib.Object {
304 [CCode (has_construct_function = false)]
305 protected Workspace ();
306 public void activate (uint32 timestamp);
307 public void change_name (string name);
308 public int get_height ();
309 public int get_layout_column ();
310 public int get_layout_row ();
311 public unowned string get_name ();
312 public unowned Wnck.Workspace get_neighbor (Wnck.MotionDirection direction);
313 public int get_number ();
314 public unowned Wnck.Screen get_screen ();
315 public int get_viewport_x ();
316 public int get_viewport_y ();
317 public int get_width ();
318 public bool is_virtual ();
320 public virtual void pad1 ();
322 public virtual void pad2 ();
324 public virtual void pad3 ();
326 public virtual void pad4 ();
327 public virtual signal void name_changed ();
330 [CCode (cheader_filename = "libwnck/libwnck.h")]
331 public class WorkspaceLayout {
333 public int current_col;
334 public int current_row;
336 public int grid_area;
339 [CCode (cprefix = "WNCK_CLIENT_TYPE_", cheader_filename = "libwnck/libwnck.h")]
340 public enum ClientType {
344 [CCode (cprefix = "WNCK_MOTION_", cheader_filename = "libwnck/libwnck.h")]
345 public enum MotionDirection {
351 [CCode (cprefix = "WNCK_PAGER_DISPLAY_", cheader_filename = "libwnck/libwnck.h")]
352 public enum PagerDisplayMode {
356 [CCode (cprefix = "WNCK_TASKLIST_", cheader_filename = "libwnck/libwnck.h")]
357 public enum TasklistGroupingType {
362 [CCode (cprefix = "WNCK_WINDOW_ACTION_", cheader_filename = "libwnck/libwnck.h")]
364 public enum WindowActions {
369 MAXIMIZE_HORIZONTALLY,
373 UNMAXIMIZE_HORIZONTALLY,
374 UNMAXIMIZE_VERTICALLY,
385 [CCode (cprefix = "WNCK_WINDOW_GRAVITY_", cheader_filename = "libwnck/libwnck.h")]
386 public enum WindowGravity {
399 [CCode (cprefix = "WNCK_WINDOW_CHANGE_", cheader_filename = "libwnck/libwnck.h")]
401 public enum WindowMoveResizeMask {
407 [CCode (cprefix = "WNCK_WINDOW_STATE_", cheader_filename = "libwnck/libwnck.h")]
409 public enum WindowState {
411 MAXIMIZED_HORIZONTALLY,
412 MAXIMIZED_VERTICALLY,
424 [CCode (cprefix = "WNCK_WINDOW_", cheader_filename = "libwnck/libwnck.h")]
425 public enum WindowType {
435 [CCode (cheader_filename = "libwnck/libwnck.h")]
436 public delegate unowned Gdk.Pixbuf LoadIconFunction (string icon_name, int size, uint flags);
437 [CCode (cheader_filename = "libwnck/libwnck.h")]
438 public static unowned Gtk.Widget create_window_action_menu (Wnck.Window window);
439 [CCode (cheader_filename = "libwnck/libwnck.h")]
440 public static void gtk_window_set_dock_type (Gtk.Window window);
441 [CCode (cheader_filename = "libwnck/libwnck.h")]
442 public static void pid_read_resource_usage (Gdk.Display gdk_display, ulong pid, Wnck.ResourceUsage usage);
443 [CCode (cheader_filename = "libwnck/libwnck.h")]
444 public static void set_client_type (Wnck.ClientType ewmh_sourceindication_client_type);
445 [CCode (cheader_filename = "libwnck/libwnck.h")]
446 public static void xid_read_resource_usage (Gdk.Display gdk_display, ulong xid, Wnck.ResourceUsage usage);