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 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 ();
34 public virtual void pad1 ();
36 public virtual void pad2 ();
38 public virtual void pad3 ();
40 public virtual void pad4 ();
41 public virtual signal void icon_changed ();
42 public virtual signal void name_changed ();
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 ();
53 public virtual void pad1 ();
55 public virtual void pad2 ();
57 public virtual void pad3 ();
59 public virtual void pad4 ();
60 public virtual signal void icon_changed ();
61 public virtual signal void name_changed ();
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);
68 public virtual void pad1 ();
70 public virtual void pad2 ();
72 public virtual void pad3 ();
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);
83 [CCode (cheader_filename = "libwnck/libwnck.h")]
84 public class ResourceUsage {
85 public uint n_colormap_entries;
86 public uint n_cursors;
89 public uint n_glyphsets;
91 public uint n_passive_grabs;
92 public uint n_pictures;
93 public uint n_pixmaps;
94 public uint n_windows;
104 public ulong pixmap_bytes;
105 public ulong total_bytes_estimate;
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);
135 public virtual void pad2 ();
137 public virtual void pad3 ();
139 public virtual void pad4 ();
141 public virtual void pad5 ();
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);
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)]
168 public virtual void pad1 ();
170 public virtual void pad2 ();
172 public virtual void pad3 ();
174 public virtual void pad4 ();
176 [CCode (cheader_filename = "libwnck/libwnck.h")]
177 public class Tasklist : Gtk.Container, Atk.Implementor, Gtk.Buildable {
178 [CCode (type = "GtkWidget*", has_construct_function = false)]
179 public Tasklist (Wnck.Screen screen);
180 public int get_minimum_height ();
181 public int get_minimum_width ();
182 public int get_size_hint_list (int n_elements);
184 public virtual void pad1 ();
186 public virtual void pad2 ();
188 public virtual void pad3 ();
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);
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 ();
259 public virtual void pad1 ();
261 public virtual void pad2 ();
263 public virtual void pad3 ();
265 public virtual void pad4 ();
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 ();
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 ();
309 public virtual void pad1 ();
311 public virtual void pad2 ();
313 public virtual void pad3 ();
315 public virtual void pad4 ();
316 public virtual signal void name_changed ();
319 [CCode (cheader_filename = "libwnck/libwnck.h")]
320 public class WorkspaceLayout {
322 public int current_col;
323 public int current_row;
325 public int grid_area;
328 [CCode (cprefix = "WNCK_CLIENT_TYPE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
329 public enum ClientType {
333 [CCode (cprefix = "WNCK_MOTION_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
334 public enum MotionDirection {
340 [CCode (cprefix = "WNCK_PAGER_DISPLAY_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
341 public enum PagerDisplayMode {
345 [CCode (cprefix = "WNCK_TASKLIST_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
346 public enum TasklistGroupingType {
351 [CCode (cprefix = "WNCK_WINDOW_ACTION_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
353 public enum WindowActions {
358 MAXIMIZE_HORIZONTALLY,
362 UNMAXIMIZE_HORIZONTALLY,
363 UNMAXIMIZE_VERTICALLY,
374 [CCode (cprefix = "WNCK_WINDOW_GRAVITY_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
375 public enum WindowGravity {
388 [CCode (cprefix = "WNCK_WINDOW_CHANGE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
390 public enum WindowMoveResizeMask {
396 [CCode (cprefix = "WNCK_WINDOW_STATE_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
398 public enum WindowState {
400 MAXIMIZED_HORIZONTALLY,
401 MAXIMIZED_VERTICALLY,
413 [CCode (cprefix = "WNCK_WINDOW_", has_type_id = "0", cheader_filename = "libwnck/libwnck.h")]
414 public enum WindowType {
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);