1 /* gdl-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdl", gir_namespace = "Gdl", gir_version = "3", lower_case_cprefix = "gdl_")]
5 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_get_type ()")]
6 public class Dock : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
7 [CCode (has_construct_function = false, type = "GtkWidget*")]
9 public void add_floating_item (Gdl.DockItem item, int x, int y, int width, int height);
10 public void add_item (Gdl.DockItem item, Gdl.DockPlacement placement);
11 public unowned Gdl.DockItem get_item_by_name (string name);
12 public GLib.List<weak Gdl.DockObject> get_named_items ();
13 [Version (deprecated = true, deprecated_since = "3.6")]
14 public unowned Gdl.DockPlaceholder get_placeholder_by_name (string name);
15 public unowned Gdl.DockObject? get_root ();
16 public void hide_preview ();
17 public Gtk.Widget new_from (bool floating);
18 [Version (since = "3.6")]
19 public void set_skip_taskbar (bool skip);
20 public void show_preview (Gdk.Rectangle rect);
21 [Version (deprecated = true, deprecated_since = "3.6")]
22 public void xor_rect (Gdk.Rectangle rect);
23 [Version (deprecated = true, deprecated_since = "3.6")]
24 public void xor_rect_hide ();
26 public string default_title { owned get; set; }
28 public bool floating { get; construct; }
30 public int floatx { get; set construct; }
32 public int floaty { get; set construct; }
34 public int height { get; set construct; }
36 [Version (since = "3.6")]
37 public bool skip_taskbar { get; set construct; }
39 public int width { get; set construct; }
40 public virtual signal void layout_changed ();
42 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_bar_get_type ()")]
43 public class DockBar : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
44 [CCode (has_construct_function = false, type = "GtkWidget*")]
45 public DockBar (GLib.Object? master);
46 [Version (deprecated = true, deprecated_since = "3.6")]
47 public Gtk.Orientation get_orientation ();
48 public Gdl.DockBarStyle get_style ();
49 [Version (deprecated = true, deprecated_since = "3.6")]
50 public void set_orientation (Gtk.Orientation orientation);
51 public void set_style (Gdl.DockBarStyle style);
53 public Gdl.DockBarStyle dockbar_style { get; set construct; }
55 public GLib.Object master { owned get; set; }
57 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_item_get_type ()")]
58 public class DockItem : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
59 [CCode (has_construct_function = false, type = "GtkWidget*")]
60 public DockItem (string name, string long_name, Gdl.DockItemBehavior behavior);
61 public void bind (Gtk.Widget dock);
62 public void dock_to (Gdl.DockItem? target, Gdl.DockPlacement position, int docking_param);
63 [Version (since = "3.6")]
64 public Gdl.DockItemBehavior get_behavior_flags ();
65 [Version (since = "3.6")]
66 public unowned Gtk.Widget get_child ();
67 [Version (since = "3.6")]
68 public void get_drag_area (Gdk.Rectangle rect);
69 public unowned Gtk.Widget? get_grip ();
70 [Version (since = "3.6")]
71 public Gtk.Orientation get_orientation ();
72 public unowned Gtk.Widget get_tablabel ();
73 public void hide_grip ();
74 public void hide_item ();
75 public void iconify_item ();
76 [Version (since = "3.6")]
77 public bool is_closed ();
78 [Version (since = "3.6")]
79 public bool is_iconified ();
80 [Version (since = "3.6")]
81 public bool is_placeholder ();
83 public void notify_deselected ();
84 public void notify_selected ();
85 [Version (since = "3.3.2")]
86 public bool or_child_has_focus ();
87 public void preferred_size (Gtk.Requisition req);
88 [Version (since = "3.6")]
89 public void set_behavior_flags (Gdl.DockItemBehavior behavior, bool clear);
90 [Version (since = "3.6")]
91 public void set_child (Gtk.Widget? child);
92 public void set_default_position (Gdl.DockObject reference);
93 [CCode (cname = "gdl_dock_item_class_set_has_grip")]
94 [Version (since = "3.6")]
95 public class void set_has_grip (bool has_grip);
96 public virtual void set_orientation (Gtk.Orientation orientation);
97 public void set_tablabel (Gtk.Widget tablabel);
98 public void show_grip ();
99 public void show_item ();
100 public void unbind ();
101 public void @unlock ();
102 [Version (since = "3.6")]
103 public void unset_behavior_flags (Gdl.DockItemBehavior behavior);
104 [CCode (has_construct_function = false, type = "GtkWidget*")]
105 [Version (since = "3.3.2")]
106 public DockItem.with_pixbuf_icon (string name, string long_name, Gdk.Pixbuf pixbuf_icon, Gdl.DockItemBehavior behavior);
107 [CCode (has_construct_function = false, type = "GtkWidget*")]
108 public DockItem.with_stock (string name, string long_name, string stock_id, Gdl.DockItemBehavior behavior);
110 public Gdl.DockItemBehavior behavior { get; set; }
112 [Version (since = "3.6")]
113 public bool closed { get; set; }
115 [Version (since = "3.6")]
116 public bool iconified { get; set; }
118 public bool locked { get; set; }
119 public Gtk.Orientation orientation { get; set construct; }
121 public int preferred_height { get; set; }
123 public int preferred_width { get; set; }
125 public bool resize { get; set; }
126 public signal void deselected ();
127 public virtual signal void dock_drag_begin ();
128 public virtual signal void dock_drag_end (bool cancelled);
129 public virtual signal void dock_drag_motion (Gdk.Device device, int x, int y);
130 [Version (since = "3.3.2")]
131 public virtual signal void move_focus_child (Gtk.DirectionType direction);
132 public signal void selected ();
134 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_item_button_image_get_type ()")]
135 public class DockItemButtonImage : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
136 public Gdl.DockItemButtonImageType image_type;
137 [CCode (has_construct_function = false, type = "GtkWidget*")]
138 public DockItemButtonImage (Gdl.DockItemButtonImageType image_type);
140 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_item_grip_get_type ()")]
141 public class DockItemGrip : Gtk.Container, Atk.Implementor, Gtk.Buildable {
142 [CCode (has_construct_function = false, type = "GtkWidget*")]
143 public DockItemGrip (Gdl.DockItem item);
144 public bool has_event (Gdk.Event event);
145 public void hide_handle ();
146 [Version (since = "3.6")]
147 public void set_cursor (bool in_drag);
148 public void set_label (Gtk.Widget label);
149 public void show_handle ();
151 public Gdl.DockItem item { construct; }
153 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_layout_get_type ()")]
154 public class DockLayout : GLib.Object {
155 [CCode (has_construct_function = false)]
156 public DockLayout (GLib.Object master);
157 public void attach (Gdl.DockMaster master);
158 public void delete_layout (string name);
159 public GLib.List<string> get_layouts (bool include_default);
160 [Version (since = "3.6")]
161 public unowned GLib.Object get_master ();
162 public bool is_dirty ();
163 public bool load_from_file (string filename);
164 public bool load_layout (string? name);
165 public void save_layout (string? name);
166 public bool save_to_file (string filename);
167 public void set_master (GLib.Object master);
169 public bool dirty { get; }
170 public GLib.Object master { get; set; }
172 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_master_get_type ()")]
173 public class DockMaster : GLib.Object {
174 [CCode (has_construct_function = false)]
175 protected DockMaster ();
176 public void add (Gdl.DockObject object);
177 public void @foreach (GLib.Func function);
178 public void foreach_toplevel (bool include_controller, GLib.Func function);
179 public unowned Gdl.DockObject get_controller ();
180 [Version (since = "3.6")]
181 public string get_dock_name ();
182 public unowned Gdl.DockObject? get_object (string nick_name);
183 public void remove (Gdl.DockObject object);
184 public void set_controller (Gdl.DockObject new_controller);
186 public string default_title { owned get; set; }
188 public int locked { get; set; }
190 public Gdl.SwitcherStyle switcher_style { get; set; }
192 public Gtk.PositionType tab_pos { get; set; }
194 public bool tab_reorderable { get; set; }
195 public virtual signal void layout_changed ();
197 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_notebook_get_type ()")]
198 public class DockNotebook : Gdl.DockItem, Atk.Implementor, Gtk.Buildable {
199 [CCode (has_construct_function = false, type = "GtkWidget*")]
200 public DockNotebook ();
202 public int page { get; set; }
204 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_object_get_type ()")]
205 public class DockObject : Gtk.Container, Atk.Implementor, Gtk.Buildable {
206 public Gdl.DockObjectFlags deprecated_flags;
207 public weak GLib.Object deprecated_master;
208 [CCode (has_construct_function = false)]
209 protected DockObject ();
210 public void bind (GLib.Object master);
211 public virtual bool child_placement (Gdl.DockObject child, Gdl.DockPlacement? placement);
212 public virtual bool dock_request (int x, int y, Gdl.DockRequest request);
213 public void freeze ();
214 [Version (since = "3.6")]
215 public unowned Gdl.DockObject get_controller ();
216 [Version (since = "3.6")]
217 public unowned string get_long_name ();
218 [Version (since = "3.6")]
219 public unowned GLib.Object get_master ();
220 public unowned Gdl.DockObject? get_parent_object ();
221 [Version (since = "3.6")]
222 public unowned Gdk.Pixbuf get_pixbuf ();
223 [Version (since = "3.6")]
224 public unowned string get_stock_id ();
225 public unowned Gdl.Dock? get_toplevel ();
226 [Version (since = "3.6")]
227 public bool is_automatic ();
228 public bool is_bound ();
229 [Version (since = "3.6")]
230 public bool is_closed ();
231 public bool is_compound ();
232 [Version (since = "3.6")]
233 public bool is_frozen ();
234 [Version (since = "3.6")]
235 public void layout_changed_notify ();
236 public static unowned string nick_from_type (GLib.Type type);
237 public virtual void present (Gdl.DockObject? child);
238 public virtual void reduce ();
239 public virtual bool reorder (Gdl.DockObject child, Gdl.DockPlacement new_position, GLib.Value? other_data);
240 [Version (since = "3.6")]
241 public void set_long_name (string name);
242 [Version (since = "3.6")]
243 public void set_manual ();
244 [Version (since = "3.6")]
245 public void set_pixbuf (Gdk.Pixbuf? icon);
246 [Version (since = "3.6")]
247 public void set_stock_id (string stock_id);
248 public static GLib.Type set_type_for_nick (string nick, GLib.Type type);
250 public static GLib.Type type_from_nick (string nick);
251 public void unbind ();
252 public string long_name { get; set construct; }
254 public Gdl.DockMaster master { owned get; set construct; }
255 public string name { get; construct; }
257 [Version (since = "3.3.2")]
258 public void* pixbuf_icon { get; set; }
259 public string stock_id { get; set construct; }
261 public virtual signal void detach (bool recursive);
263 public virtual signal void dock (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value other_data);
265 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_paned_get_type ()")]
266 public class DockPaned : Gdl.DockItem, Atk.Implementor, Gtk.Buildable {
267 [CCode (has_construct_function = false, type = "GtkWidget*")]
268 public DockPaned (Gtk.Orientation orientation);
270 public uint position { get; set; }
272 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_param_get_type ()")]
273 public class DockParam {
274 [CCode (has_construct_function = false)]
275 protected DockParam ();
277 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_placeholder_get_type ()")]
278 public class DockPlaceholder : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
279 [CCode (has_construct_function = false, type = "GtkWidget*")]
280 [Version (deprecated = true, deprecated_since = "3.6")]
281 public DockPlaceholder (string name, Gdl.DockObject object, Gdl.DockPlacement position, bool sticky);
282 [Version (deprecated = true, deprecated_since = "3.6")]
283 public void attach (Gdl.DockObject object);
285 public bool floating { get; construct; }
287 public int floatx { get; construct; }
289 public int floaty { get; construct; }
291 public int height { get; set construct; }
293 public Gdl.DockObject host { owned get; set; }
295 public Gdl.DockPlacement next_placement { get; set; }
297 public bool sticky { get; construct; }
299 public int width { get; set construct; }
301 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_tablabel_get_type ()")]
302 public class DockTablabel : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
304 public uint drag_handle_size;
305 public weak Gdk.EventButton drag_start_event;
306 public weak Gdk.Window event_window;
307 public bool pre_drag;
308 [CCode (has_construct_function = false, type = "GtkWidget*")]
309 [Version (deprecated = true, deprecated_since = "3.6")]
310 public DockTablabel (Gdl.DockItem item);
311 [Version (deprecated = true, deprecated_since = "3.6")]
312 public void activate ();
313 [Version (deprecated = true, deprecated_since = "3.6")]
314 public void deactivate ();
316 public Gdl.DockItem item { owned get; set; }
317 public virtual signal void button_pressed_handle (Gdk.Event event);
319 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_preview_window_get_type ()")]
320 public class PreviewWindow : Gtk.Window, Atk.Implementor, Gtk.Buildable {
321 [CCode (has_construct_function = false, type = "GtkWidget*")]
322 public PreviewWindow ();
323 public void update (Gdk.Rectangle rect);
325 [CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_switcher_get_type ()")]
326 public class Switcher : Gtk.Notebook, Atk.Implementor, Gtk.Buildable {
327 [CCode (has_construct_function = false, type = "GtkWidget*")]
329 public int insert_page (Gtk.Widget page, Gtk.Widget tab_widget, string label, string tooltips, string stock_id, Gdk.Pixbuf pixbuf_icon, int position);
331 public Gdl.SwitcherStyle switcher_style { get; set; }
333 public Gtk.PositionType tab_pos { get; set; }
335 public bool tab_reorderable { get; set; }
337 [CCode (cheader_filename = "gdl/gdl.h", has_type_id = false)]
338 public struct DockRequest {
339 public weak Gdl.DockObject applicant;
340 public weak Gdl.DockObject target;
341 public Gdl.DockPlacement position;
342 public Cairo.RectangleInt rect;
343 public GLib.Value extra;
345 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_BAR_", type_id = "gdl_dock_bar_style_get_type ()")]
346 public enum DockBarStyle {
352 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_ITEM_BEH_", type_id = "gdl_dock_item_behavior_get_type ()")]
354 public enum DockItemBehavior {
369 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_ITEM_BUTTON_IMAGE_", has_type_id = false)]
370 public enum DockItemButtonImageType {
374 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_", type_id = "gdl_dock_item_flags_get_type ()")]
376 [Version (deprecated = true, deprecated_since = "3.6")]
377 public enum DockItemFlags {
383 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_", type_id = "gdl_dock_object_flags_get_type ()")]
385 public enum DockObjectFlags {
391 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_PARAM_", type_id = "gdl_dock_param_flags_get_type ()")]
393 public enum DockParamFlags {
397 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_", type_id = "gdl_dock_placement_get_type ()")]
398 public enum DockPlacement {
407 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_SWITCHER_STYLE_", type_id = "gdl_switcher_style_get_type ()")]
408 public enum SwitcherStyle {
416 [CCode (cheader_filename = "gdl/gdl.h", cname = "GDL_DOCK_MASTER_PROPERTY")]
417 public const string DOCK_MASTER_PROPERTY;
418 [CCode (cheader_filename = "gdl/gdl.h", cname = "GDL_DOCK_NAME_PROPERTY")]
419 public const string DOCK_NAME_PROPERTY;
420 [CCode (cheader_filename = "gdl/gdl.h", cname = "GDL_DOCK_OBJECT_FLAGS_SHIFT")]
421 [Version (deprecated = true, deprecated_since = "3.6")]
422 public const int DOCK_OBJECT_FLAGS_SHIFT;
423 [CCode (cheader_filename = "gdl/gdl.h")]
424 public static void marshal_VOID__OBJECT_ENUM_BOXED (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
425 [CCode (cheader_filename = "gdl/gdl.h")]
426 public static void marshal_VOID__OBJECT_INT_INT (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
427 [CCode (cheader_filename = "gdl/gdl.h")]
428 public static void marshal_VOID__UINT_UINT (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);