1 /* gdl-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdl", lower_case_cprefix = "gdl_")]
5 [CCode (cheader_filename = "gdl/gdl.h")]
6 public class Dock : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
7 public weak Gdl.DockObject root;
8 [CCode (type = "GtkWidget*", has_construct_function = false)]
10 public void add_floating_item (Gdl.DockItem item, int x, int y, int width, int height);
11 public void add_item (Gdl.DockItem item, Gdl.DockPlacement place);
12 [CCode (type = "GtkWidget*", has_construct_function = false)]
13 public Dock.from (Gdl.Dock original, bool floating);
14 public unowned Gdl.DockItem get_item_by_name (string name);
15 public unowned GLib.List get_named_items ();
16 public unowned Gdl.DockPlaceholder get_placeholder_by_name (string name);
17 public static GLib.Type param_get_type ();
18 public void xor_rect (Gdk.Rectangle rect);
20 public string default_title { owned get; set; }
22 public bool floating { get; construct; }
24 public int floatx { get; set construct; }
26 public int floaty { get; set construct; }
28 public int height { get; set construct; }
30 public int width { get; set construct; }
31 public virtual signal void layout_changed ();
33 [CCode (cheader_filename = "gdl/gdl.h")]
34 public class DockBar : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
35 public weak Gdl.Dock dock;
36 [CCode (type = "GtkWidget*", has_construct_function = false)]
37 public DockBar (Gdl.Dock dock);
38 public Gtk.Orientation get_orientation ();
39 public Gdl.DockBarStyle get_style ();
40 public void set_orientation (Gtk.Orientation orientation);
41 public void set_style (Gdl.DockBarStyle style);
43 public Gdl.DockBarStyle dockbar_style { get; set construct; }
45 public Gdl.DockMaster master { owned get; set; }
47 [CCode (cheader_filename = "gdl/gdl.h")]
48 public class DockItem : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
49 public weak Gtk.Widget child;
52 [CCode (type = "GtkWidget*", has_construct_function = false)]
53 public DockItem (string name, string long_name, Gdl.DockItemBehavior behavior);
54 public void bind (Gtk.Widget dock);
55 public void dock_to (Gdl.DockItem? target, Gdl.DockPlacement position, int docking_param);
56 public unowned Gtk.Widget get_grip ();
57 public unowned Gtk.Widget get_tablabel ();
58 public void hide_grip ();
59 public void hide_item ();
60 public void iconify_item ();
62 public void notify_selected ();
63 public void preferred_size (Gtk.Requisition req);
64 public void set_default_position (Gdl.DockObject reference);
65 public virtual void set_orientation (Gtk.Orientation orientation);
66 public void set_tablabel (Gtk.Widget tablabel);
67 public void show_grip ();
68 public void show_item ();
69 public void unbind ();
70 public void unlock ();
71 [CCode (type = "GtkWidget*", has_construct_function = false)]
72 public DockItem.with_stock (string name, string long_name, string stock_id, Gdl.DockItemBehavior behavior);
74 public Gdl.DockItemBehavior behavior { get; set; }
76 public bool locked { get; set; }
78 public Gtk.Orientation orientation { get; set construct; }
80 public int preferred_height { get; set; }
82 public int preferred_width { get; set; }
84 public bool resize { get; set; }
85 public virtual signal void dock_drag_begin ();
86 public virtual signal void dock_drag_end (bool cancelled);
87 public virtual signal void dock_drag_motion (int x, int y);
88 public virtual signal void selected ();
90 [CCode (cheader_filename = "gdl/gdl.h")]
91 public class DockItemGrip : Gtk.Container, Atk.Implementor, Gtk.Buildable {
92 public weak Gdk.Window title_window;
93 [CCode (type = "GtkWidget*", has_construct_function = false)]
94 public DockItemGrip (Gdl.DockItem item);
95 public void hide_handle ();
96 public void set_label (Gtk.Widget label);
97 public void show_handle ();
98 public Gdl.DockItem item { construct; }
100 [CCode (cheader_filename = "gdl/gdl.h")]
101 public class DockLayout : GLib.Object {
102 [CCode (has_construct_function = false)]
103 public DockLayout (Gdl.Dock dock);
104 public void attach (Gdl.DockMaster master);
105 public void delete_layout (string name);
106 public unowned Gtk.Widget get_items_ui ();
107 public unowned GLib.List get_layouts (bool include_default);
108 public unowned Gtk.Widget get_layouts_ui ();
109 public unowned Gtk.Widget get_ui ();
110 public bool is_dirty ();
111 public bool load_from_file (string filename);
112 public bool load_layout (string name);
113 public void run_manager ();
114 public void save_layout (string name);
115 public bool save_to_file (string filename);
117 public bool dirty { get; }
119 public Gdl.DockMaster master { owned get; set; }
121 [CCode (cheader_filename = "gdl/gdl.h")]
122 public class DockMaster : GLib.Object {
123 public weak Gdl.DockObject controller;
124 public int dock_number;
125 public weak GLib.HashTable dock_objects;
126 public weak GLib.List toplevel_docks;
127 public void add (Gdl.DockObject object);
128 public void @foreach (GLib.Func function);
129 public void foreach_toplevel (bool include_controller, GLib.Func function);
130 public unowned Gdl.DockObject get_controller ();
131 public unowned Gdl.DockObject get_object (string nick_name);
132 public void remove (Gdl.DockObject object);
133 public void set_controller (Gdl.DockObject new_controller);
135 public string default_title { owned get; set; }
137 public int locked { get; set; }
139 public Gdl.SwitcherStyle switcher_style { get; set; }
140 public virtual signal void layout_changed ();
142 [CCode (cheader_filename = "gdl/gdl.h")]
143 public class DockObject : Gtk.Container, Atk.Implementor, Gtk.Buildable {
144 public Gdl.DockObjectFlags flags;
145 public int freeze_count;
146 public bool reduce_pending;
147 public void bind (GLib.Object master);
148 public virtual bool child_placement (Gdl.DockObject child, Gdl.DockPlacement placement);
149 public void detach (bool recursive);
150 public void dock (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value? other_data);
151 public virtual bool dock_request (int x, int y, Gdl.DockRequest request);
152 public void freeze ();
153 public unowned Gdl.DockObject get_parent_object ();
154 public unowned Gdl.Dock get_toplevel ();
155 [CCode (cname = "GDL_DOCK_OBJECT_ATTACHED")]
156 public bool is_attached ();
157 [CCode (cname = "GDL_DOCK_OBJECT_AUTOMATIC")]
158 public bool is_automatic ();
159 public bool is_bound ();
160 public bool is_compound ();
161 [CCode (cname = "GDL_DOCK_OBJECT_FROZEN")]
162 public bool is_frozen ();
163 [CCode (cname = "GDL_DOCK_OBJECT_IN_DETACH")]
164 public bool is_in_detach ();
165 [CCode (cname = "GDL_DOCK_OBJECT_IN_REFLOW")]
166 public bool is_in_reflow ();
167 [CCode (cname = "GDL_DOCK_OBJECT_SET_FLAGS")]
168 public bool is_set_flags (Gdl.DockObjectFlags flags);
169 [CCode (cname = "GDL_DOCK_OBJECT_UNSET_FLAGS")]
170 public bool is_unset_flags (Gdl.DockObjectFlags flags);
171 public static unowned string nick_from_type (GLib.Type type);
172 public virtual void present (Gdl.DockObject child);
173 public virtual void reduce ();
174 public virtual bool reorder (Gdl.DockObject child, Gdl.DockPlacement new_position, GLib.Value other_data);
175 public static GLib.Type set_type_for_nick (string nick, GLib.Type type);
177 public static GLib.Type type_from_nick (string nick);
178 public void unbind ();
180 public string long_name { owned get; set; }
182 public Gdl.DockMaster master { owned get; set construct; }
184 public string name { owned get; construct; }
186 public string stock_id { owned get; set; }
187 public virtual signal void detached (bool recursive);
188 public virtual signal void docked (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value other_data);
190 [CCode (cheader_filename = "gdl/gdl.h")]
191 public class DockPlaceholder : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
192 [CCode (type = "GtkWidget*", has_construct_function = false)]
193 public DockPlaceholder (string name, Gdl.DockObject object, Gdl.DockPlacement position, bool sticky);
194 public void attach (Gdl.DockObject object);
196 public bool floating { get; construct; }
198 public int floatx { get; construct; }
200 public int floaty { get; construct; }
202 public int height { get; set construct; }
204 public Gdl.DockObject host { owned get; set; }
206 public Gdl.DockPlacement next_placement { get; set; }
208 public bool sticky { get; construct; }
210 public int width { get; set construct; }
213 [CCode (cheader_filename = "gdl/gdl.h")]
214 public class DockRequest {
215 public weak Gdl.DockObject applicant;
216 public GLib.Value extra;
217 public Gdl.DockPlacement position;
218 public Gdk.Rectangle rect;
219 public weak Gdl.DockObject target;
222 [CCode (cheader_filename = "gdl/gdl.h")]
223 public class Pixmap {
224 public weak string fname;
225 public weak string path;
226 public weak string pixbuf;
228 [CCode (cprefix = "GDL_DOCK_BAR_", cheader_filename = "gdl/gdl.h")]
229 public enum DockBarStyle {
235 [CCode (cprefix = "GDL_DOCK_ITEM_BEH_", cheader_filename = "gdl/gdl.h")]
237 public enum DockItemBehavior {
252 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
254 public enum DockItemFlags {
260 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
262 public enum DockObjectFlags {
268 [CCode (cprefix = "GDL_DOCK_PARAM_", cheader_filename = "gdl/gdl.h")]
270 public enum DockParamFlags {
274 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
275 public enum DockPlacement {
284 [CCode (cprefix = "GDL_SWITCHER_STYLE_", cheader_filename = "gdl/gdl.h")]
285 public enum SwitcherStyle {
293 [CCode (cheader_filename = "gdl/gdl.h")]
294 public const string DOCK_MASTER_PROPERTY;
295 [CCode (cheader_filename = "gdl/gdl.h")]
296 public const string DOCK_NAME_PROPERTY;
297 [CCode (cheader_filename = "gdl/gdl.h")]
298 public const int DOCK_OBJECT_FLAGS_SHIFT;