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 [CCode (has_construct_function = false)]
128 protected DockMaster ();
129 public void add (Gdl.DockObject object);
130 public void @foreach (GLib.Func function);
131 public void foreach_toplevel (bool include_controller, GLib.Func function);
132 public unowned Gdl.DockObject get_controller ();
133 public unowned Gdl.DockObject get_object (string nick_name);
134 public void remove (Gdl.DockObject object);
135 public void set_controller (Gdl.DockObject new_controller);
137 public string default_title { owned get; set; }
139 public int locked { get; set; }
141 public Gdl.SwitcherStyle switcher_style { get; set; }
142 public virtual signal void layout_changed ();
144 [CCode (cheader_filename = "gdl/gdl.h")]
145 public class DockObject : Gtk.Container, Atk.Implementor, Gtk.Buildable {
146 public Gdl.DockObjectFlags flags;
147 public int freeze_count;
148 public bool reduce_pending;
149 [CCode (has_construct_function = false)]
150 protected DockObject ();
151 public void bind (GLib.Object master);
152 public virtual bool child_placement (Gdl.DockObject child, Gdl.DockPlacement placement);
153 public void detach (bool recursive);
154 public void dock (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value? other_data);
155 public virtual bool dock_request (int x, int y, Gdl.DockRequest request);
156 public void freeze ();
157 public unowned Gdl.DockObject get_parent_object ();
158 public unowned Gdl.Dock get_toplevel ();
159 [CCode (cname = "GDL_DOCK_OBJECT_ATTACHED")]
160 public bool is_attached ();
161 [CCode (cname = "GDL_DOCK_OBJECT_AUTOMATIC")]
162 public bool is_automatic ();
163 public bool is_bound ();
164 public bool is_compound ();
165 [CCode (cname = "GDL_DOCK_OBJECT_FROZEN")]
166 public bool is_frozen ();
167 [CCode (cname = "GDL_DOCK_OBJECT_IN_DETACH")]
168 public bool is_in_detach ();
169 [CCode (cname = "GDL_DOCK_OBJECT_IN_REFLOW")]
170 public bool is_in_reflow ();
171 [CCode (cname = "GDL_DOCK_OBJECT_SET_FLAGS")]
172 public bool is_set_flags (Gdl.DockObjectFlags flags);
173 [CCode (cname = "GDL_DOCK_OBJECT_UNSET_FLAGS")]
174 public bool is_unset_flags (Gdl.DockObjectFlags flags);
175 public static unowned string nick_from_type (GLib.Type type);
176 public virtual void present (Gdl.DockObject child);
177 public virtual void reduce ();
178 public virtual bool reorder (Gdl.DockObject child, Gdl.DockPlacement new_position, GLib.Value other_data);
179 public static GLib.Type set_type_for_nick (string nick, GLib.Type type);
181 public static GLib.Type type_from_nick (string nick);
182 public void unbind ();
184 public string long_name { owned get; set; }
186 public Gdl.DockMaster master { owned get; set construct; }
188 public string name { owned get; construct; }
190 public string stock_id { owned get; set; }
191 public virtual signal void detached (bool recursive);
192 public virtual signal void docked (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value other_data);
194 [CCode (cheader_filename = "gdl/gdl.h")]
195 public class DockPlaceholder : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
196 [CCode (type = "GtkWidget*", has_construct_function = false)]
197 public DockPlaceholder (string name, Gdl.DockObject object, Gdl.DockPlacement position, bool sticky);
198 public void attach (Gdl.DockObject object);
200 public bool floating { get; construct; }
202 public int floatx { get; construct; }
204 public int floaty { get; construct; }
206 public int height { get; set construct; }
208 public Gdl.DockObject host { owned get; set; }
210 public Gdl.DockPlacement next_placement { get; set; }
212 public bool sticky { get; construct; }
214 public int width { get; set construct; }
217 [CCode (cheader_filename = "gdl/gdl.h")]
218 public class DockRequest {
219 public weak Gdl.DockObject applicant;
220 public GLib.Value extra;
221 public Gdl.DockPlacement position;
222 public Gdk.Rectangle rect;
223 public weak Gdl.DockObject target;
226 [CCode (cheader_filename = "gdl/gdl.h")]
227 public class Pixmap {
228 public weak string fname;
229 public weak string path;
230 public weak string pixbuf;
232 [CCode (cprefix = "GDL_DOCK_BAR_", cheader_filename = "gdl/gdl.h")]
233 public enum DockBarStyle {
239 [CCode (cprefix = "GDL_DOCK_ITEM_BEH_", cheader_filename = "gdl/gdl.h")]
241 public enum DockItemBehavior {
256 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
258 public enum DockItemFlags {
264 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
266 public enum DockObjectFlags {
272 [CCode (cprefix = "GDL_DOCK_PARAM_", cheader_filename = "gdl/gdl.h")]
274 public enum DockParamFlags {
278 [CCode (cprefix = "GDL_DOCK_", cheader_filename = "gdl/gdl.h")]
279 public enum DockPlacement {
288 [CCode (cprefix = "GDL_SWITCHER_STYLE_", cheader_filename = "gdl/gdl.h")]
289 public enum SwitcherStyle {
297 [CCode (cheader_filename = "gdl/gdl.h")]
298 public const string DOCK_MASTER_PROPERTY;
299 [CCode (cheader_filename = "gdl/gdl.h")]
300 public const string DOCK_NAME_PROPERTY;
301 [CCode (cheader_filename = "gdl/gdl.h")]
302 public const int DOCK_OBJECT_FLAGS_SHIFT;