1 /* gdl-1.0.vapi generated by vapigen, do not modify. */
4 [CCode (cheader_filename = "gdl/gdl.h")]
5 public class Dock : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
6 public weak Gdl.DockObject root;
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 place);
11 [CCode (has_construct_function = false, type = "GtkWidget*")]
12 public Dock.from (Gdl.Dock original, bool floating);
13 public unowned Gdl.DockItem get_item_by_name (string name);
14 public unowned GLib.List get_named_items ();
15 public unowned Gdl.DockPlaceholder get_placeholder_by_name (string name);
16 public static GLib.Type param_get_type ();
17 public void xor_rect (Gdk.Rectangle rect);
19 public string default_title { owned get; set; }
21 public bool floating { get; construct; }
23 public int floatx { get; set construct; }
25 public int floaty { get; set construct; }
27 public int height { get; set construct; }
29 public int width { get; set construct; }
30 public virtual signal void layout_changed ();
32 [CCode (cheader_filename = "gdl/gdl.h")]
33 public class DockBar : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
34 public weak Gdl.Dock dock;
35 [CCode (has_construct_function = false, type = "GtkWidget*")]
36 public DockBar (Gdl.Dock dock);
37 public Gtk.Orientation get_orientation ();
38 public Gdl.DockBarStyle get_style ();
39 public void set_orientation (Gtk.Orientation orientation);
40 public void set_style (Gdl.DockBarStyle style);
42 public Gdl.DockBarStyle dockbar_style { get; set construct; }
44 public Gdl.DockMaster master { owned get; set; }
46 [CCode (cheader_filename = "gdl/gdl.h")]
47 public class DockItem : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
48 public weak Gtk.Widget child;
51 [CCode (has_construct_function = false, type = "GtkWidget*")]
52 public DockItem (string name, string long_name, Gdl.DockItemBehavior behavior);
53 public void bind (Gtk.Widget dock);
54 public void dock_to (Gdl.DockItem? target, Gdl.DockPlacement position, int docking_param);
55 public unowned Gtk.Widget get_grip ();
56 public unowned Gtk.Widget get_tablabel ();
57 public void hide_grip ();
58 public void hide_item ();
59 public void iconify_item ();
61 public void notify_selected ();
62 public void preferred_size (Gtk.Requisition req);
63 public void set_default_position (Gdl.DockObject reference);
64 public virtual void set_orientation (Gtk.Orientation orientation);
65 public void set_tablabel (Gtk.Widget tablabel);
66 public void show_grip ();
67 public void show_item ();
68 public void unbind ();
69 public void @unlock ();
70 [CCode (has_construct_function = false, type = "GtkWidget*")]
71 public DockItem.with_stock (string name, string long_name, string stock_id, Gdl.DockItemBehavior behavior);
73 public Gdl.DockItemBehavior behavior { get; set; }
75 public bool locked { get; set; }
77 public Gtk.Orientation orientation { get; set construct; }
79 public int preferred_height { get; set; }
81 public int preferred_width { get; set; }
83 public bool resize { get; set; }
84 public virtual signal void dock_drag_begin ();
85 public virtual signal void dock_drag_end (bool cancelled);
86 public virtual signal void dock_drag_motion (int x, int y);
87 public virtual signal void selected ();
89 [CCode (cheader_filename = "gdl/gdl.h")]
90 public class DockItemGrip : Gtk.Container, Atk.Implementor, Gtk.Buildable {
91 public weak Gdk.Window title_window;
92 [CCode (has_construct_function = false, type = "GtkWidget*")]
93 public DockItemGrip (Gdl.DockItem item);
94 public void hide_handle ();
95 public void set_label (Gtk.Widget label);
96 public void show_handle ();
97 public Gdl.DockItem item { construct; }
99 [CCode (cheader_filename = "gdl/gdl.h")]
100 public class DockLayout : GLib.Object {
101 [CCode (has_construct_function = false)]
102 public DockLayout (Gdl.Dock dock);
103 public void attach (Gdl.DockMaster master);
104 public void delete_layout (string name);
105 public unowned Gtk.Widget get_items_ui ();
106 public unowned GLib.List get_layouts (bool include_default);
107 public unowned Gtk.Widget get_layouts_ui ();
108 public unowned Gtk.Widget get_ui ();
109 public bool is_dirty ();
110 public bool load_from_file (string filename);
111 public bool load_layout (string name);
112 public void run_manager ();
113 public void save_layout (string name);
114 public bool save_to_file (string filename);
116 public bool dirty { get; }
118 public Gdl.DockMaster master { owned get; set; }
120 [CCode (cheader_filename = "gdl/gdl.h")]
121 public class DockMaster : GLib.Object {
122 public weak Gdl.DockObject controller;
123 public int dock_number;
124 public weak GLib.HashTable dock_objects;
125 public weak GLib.List toplevel_docks;
126 [CCode (has_construct_function = false)]
127 protected DockMaster ();
128 public void add (Gdl.DockObject object);
129 public void @foreach (GLib.Func<Gdl.DockObject> function);
130 public void foreach_toplevel (bool include_controller, GLib.Func<Gdl.DockObject> function);
131 public unowned Gdl.DockObject get_controller ();
132 public unowned Gdl.DockObject get_object (string nick_name);
133 public void remove (Gdl.DockObject object);
134 public void set_controller (Gdl.DockObject new_controller);
136 public string default_title { owned get; set; }
138 public int locked { get; set; }
140 public Gdl.SwitcherStyle switcher_style { get; set; }
141 public virtual signal void layout_changed ();
143 [CCode (cheader_filename = "gdl/gdl.h")]
144 public class DockObject : Gtk.Container, Atk.Implementor, Gtk.Buildable {
145 public Gdl.DockObjectFlags flags;
146 public int freeze_count;
147 public bool reduce_pending;
148 [CCode (has_construct_function = false)]
149 protected DockObject ();
150 public void bind (GLib.Object master);
151 public virtual bool child_placement (Gdl.DockObject child, Gdl.DockPlacement placement);
152 public void detach (bool recursive);
153 public void dock (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value? other_data);
154 public virtual bool dock_request (int x, int y, Gdl.DockRequest request);
155 public void freeze ();
156 public unowned Gdl.DockObject get_parent_object ();
157 public unowned Gdl.Dock get_toplevel ();
158 [CCode (cname = "GDL_DOCK_OBJECT_ATTACHED")]
159 public bool is_attached ();
160 [CCode (cname = "GDL_DOCK_OBJECT_AUTOMATIC")]
161 public bool is_automatic ();
162 public bool is_bound ();
163 public bool is_compound ();
164 [CCode (cname = "GDL_DOCK_OBJECT_FROZEN")]
165 public bool is_frozen ();
166 [CCode (cname = "GDL_DOCK_OBJECT_IN_DETACH")]
167 public bool is_in_detach ();
168 [CCode (cname = "GDL_DOCK_OBJECT_IN_REFLOW")]
169 public bool is_in_reflow ();
170 [CCode (cname = "GDL_DOCK_OBJECT_SET_FLAGS")]
171 public bool is_set_flags (Gdl.DockObjectFlags flags);
172 [CCode (cname = "GDL_DOCK_OBJECT_UNSET_FLAGS")]
173 public bool is_unset_flags (Gdl.DockObjectFlags flags);
174 public static unowned string nick_from_type (GLib.Type type);
175 public virtual void present (Gdl.DockObject child);
176 public virtual void reduce ();
177 public virtual bool reorder (Gdl.DockObject child, Gdl.DockPlacement new_position, GLib.Value other_data);
178 public static GLib.Type set_type_for_nick (string nick, GLib.Type type);
180 public static GLib.Type type_from_nick (string nick);
181 public void unbind ();
183 public string long_name { owned get; set; }
185 public Gdl.DockMaster master { owned get; set construct; }
187 public string name { owned get; construct; }
189 public string stock_id { owned get; set; }
190 [CCode (cname = "detach")]
191 public virtual signal void detached (bool recursive);
192 [CCode (cname = "dock")]
193 public virtual signal void docked (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value other_data);
195 [CCode (cheader_filename = "gdl/gdl.h")]
196 public class DockPlaceholder : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
197 [CCode (has_construct_function = false, type = "GtkWidget*")]
198 public DockPlaceholder (string name, Gdl.DockObject object, Gdl.DockPlacement position, bool sticky);
199 public void attach (Gdl.DockObject object);
201 public bool floating { get; construct; }
203 public int floatx { get; construct; }
205 public int floaty { get; construct; }
207 public int height { get; set construct; }
209 public Gdl.DockObject host { owned get; set; }
211 public Gdl.DockPlacement next_placement { get; set; }
213 public bool sticky { get; construct; }
215 public int width { get; set construct; }
217 [CCode (cheader_filename = "gdl/gdl.h")]
219 public class DockRequest {
220 public weak Gdl.DockObject applicant;
221 public GLib.Value extra;
222 public Gdl.DockPlacement position;
223 public Gdk.Rectangle rect;
224 public weak Gdl.DockObject target;
226 [CCode (cheader_filename = "gdl/gdl.h")]
228 public class Pixmap {
229 public weak string fname;
230 public weak string path;
231 public weak string pixbuf;
233 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_BAR_")]
234 public enum DockBarStyle {
240 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_ITEM_BEH_")]
242 public enum DockItemBehavior {
257 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_")]
259 public enum DockItemFlags {
265 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_")]
267 public enum DockObjectFlags {
273 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_PARAM_")]
275 public enum DockParamFlags {
279 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_DOCK_")]
280 public enum DockPlacement {
289 [CCode (cheader_filename = "gdl/gdl.h", cprefix = "GDL_SWITCHER_STYLE_")]
290 public enum SwitcherStyle {
298 [CCode (cheader_filename = "gdl/gdl.h")]
299 public const string DOCK_MASTER_PROPERTY;
300 [CCode (cheader_filename = "gdl/gdl.h")]
301 public const string DOCK_NAME_PROPERTY;
302 [CCode (cheader_filename = "gdl/gdl.h")]
303 public const int DOCK_OBJECT_FLAGS_SHIFT;