1/* gd-1.0.vapi generated by vapigen, do not modify. */
2
3[CCode (cprefix = "Gd", gir_namespace = "Gd", gir_version = "1.0", lower_case_cprefix = "gd_")]
4namespace Gd {
5	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_box_get_type ()")]
6	public class MainBox : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
7		[CCode (has_construct_function = false, type = "GtkWidget*")]
8		public MainBox (Gd.MainBoxType type);
9		public Gd.MainBoxType get_box_type ();
10		public unowned GLib.ListModel get_model ();
11		public GLib.List<Gd.MainBoxItem> get_selection ();
12		public bool get_selection_mode ();
13		public bool get_show_primary_text ();
14		public bool get_show_secondary_text ();
15		public void select_all ();
16		public void set_box_type (Gd.MainBoxType type);
17		public void set_model (GLib.ListModel? model);
18		public void set_selection_mode (bool selection_mode);
19		public void set_show_primary_text (bool show_primary_text);
20		public void set_show_secondary_text (bool show_secondary_text);
21		public void unselect_all ();
22		public int box_type { get; set construct; }
23		public GLib.ListModel model { get; set construct; }
24		public bool selection_mode { get; set construct; }
25		public bool show_primary_text { get; set construct; }
26		public bool show_secondary_text { get; set construct; }
27		public signal void item_activated (Gd.MainBoxItem object);
28		public signal void selection_changed ();
29		public signal void selection_mode_request ();
30	}
31	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_icon_box_get_type ()")]
32	public class MainIconBox : Gtk.FlowBox, Atk.Implementor, Gd.MainBoxGeneric, Gtk.Buildable, Gtk.Orientable {
33		[CCode (has_construct_function = false, type = "GtkWidget*")]
34		public MainIconBox ();
35		[NoWrapper]
36		public virtual bool move_cursor (Gtk.MovementStep step, int count);
37	}
38	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_icon_box_child_get_type ()")]
39	public class MainIconBoxChild : Gtk.FlowBoxChild, Atk.Implementor, Gd.MainBoxChild, Gtk.Buildable {
40		[CCode (has_construct_function = false, type = "GtkWidget*")]
41		public MainIconBoxChild (Gd.MainBoxItem item, bool selection_mode);
42	}
43	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_icon_box_icon_get_type ()")]
44	public class MainIconBoxIcon : Gtk.DrawingArea, Atk.Implementor, Gtk.Buildable {
45		[CCode (has_construct_function = false, type = "GtkWidget*")]
46		public MainIconBoxIcon (Gd.MainBoxItem item);
47		public void set_item (Gd.MainBoxItem item);
48		[NoAccessorMethod]
49		public Gd.MainBoxItem item { owned get; set; }
50	}
51	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_icon_view_get_type ()")]
52	public class MainIconView : Gtk.IconView, Atk.Implementor, Gd.MainViewGeneric, Gtk.Buildable, Gtk.CellLayout, Gtk.Scrollable {
53		[CCode (has_construct_function = false, type = "GtkWidget*")]
54		public MainIconView ();
55	}
56	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_notification_get_type ()")]
57	public class Notification : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
58		[CCode (has_construct_function = false, type = "GtkWidget*")]
59		public Notification ();
60		public void dismiss ();
61		public void set_show_close_button (bool show_close_button);
62		public void set_timeout (int timeout_sec);
63		[NoAccessorMethod]
64		public bool show_close_button { get; set construct; }
65		[NoAccessorMethod]
66		[Version (since = "0.1")]
67		public int timeout { get; set construct; }
68		public virtual signal void dismissed ();
69	}
70	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_styled_text_renderer_get_type ()")]
71	public class StyledTextRenderer : Gtk.CellRendererText {
72		[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
73		public StyledTextRenderer ();
74		public void add_class (string @class);
75		public void remove_class (string @class);
76	}
77	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_tagged_entry_get_type ()")]
78	public class TaggedEntry : Gtk.SearchEntry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.Editable {
79		[CCode (has_construct_function = false)]
80		public TaggedEntry ();
81		public bool add_tag (Gd.TaggedEntryTag tag);
82		public static GLib.Resource get_resource ();
83		public bool get_tag_button_visible ();
84		public bool insert_tag (Gd.TaggedEntryTag tag, int position);
85		public bool remove_tag (Gd.TaggedEntryTag tag);
86		public void set_tag_button_visible (bool visible);
87		[NoAccessorMethod]
88		public bool tag_close_visible { set; }
89		public signal void tag_button_clicked (Gd.TaggedEntryTag object);
90		public signal void tag_clicked (Gd.TaggedEntryTag object);
91	}
92	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_tagged_entry_tag_get_type ()")]
93	public class TaggedEntryTag : GLib.Object {
94		[CCode (has_construct_function = false)]
95		public TaggedEntryTag (string label);
96		public bool get_area (Cairo.RectangleInt rect);
97		public bool get_has_close_button ();
98		public unowned string get_label ();
99		public unowned string get_style ();
100		public void set_has_close_button (bool has_close_button);
101		public void set_label (string label);
102		public void set_style (string style);
103		public bool has_close_button { get; set construct; }
104		public string label { get; set construct; }
105		public string style { get; set construct; }
106	}
107	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_toggle_pixbuf_renderer_get_type ()")]
108	public class TogglePixbufRenderer : Gtk.CellRendererPixbuf {
109		[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
110		public TogglePixbufRenderer ();
111		[NoAccessorMethod]
112		public bool active { get; set; }
113		[NoAccessorMethod]
114		public uint pulse { get; set; }
115		[NoAccessorMethod]
116		public bool toggle_visible { get; set; }
117	}
118	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_two_lines_renderer_get_type ()")]
119	public class TwoLinesRenderer : Gtk.CellRendererText {
120		[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
121		public TwoLinesRenderer ();
122		[NoAccessorMethod]
123		public string line_two { owned get; set; }
124		[NoAccessorMethod]
125		public int text_lines { get; set; }
126	}
127	[CCode (cheader_filename = "libgd/gd.h", type_cname = "GdMainBoxChildInterface", type_id = "gd_main_box_child_get_type ()")]
128	public interface MainBoxChild : Gtk.Widget {
129		public abstract int get_index ();
130		public abstract unowned Gd.MainBoxItem get_item ();
131		public abstract bool get_selected ();
132		public bool get_selection_mode ();
133		public abstract void set_selected (bool selected);
134		public void set_selection_mode (bool selection_mode);
135		public abstract Gd.MainBoxItem item { get; construct; }
136		[ConcreteAccessor]
137		public abstract bool selection_mode { get; set construct; }
138		[NoAccessorMethod]
139		public abstract bool show_primary_text { get; set; }
140		[NoAccessorMethod]
141		public abstract bool show_secondary_text { get; set; }
142	}
143	[CCode (cheader_filename = "libgd/gd.h", type_cname = "GdMainBoxGenericInterface", type_id = "gd_main_box_generic_get_type ()")]
144	public interface MainBoxGeneric : Gtk.Widget {
145		public abstract unowned Gd.MainBoxChild get_child_at_index (int index);
146		public abstract unowned string get_last_selected_id ();
147		public abstract unowned GLib.ListModel get_model ();
148		public abstract GLib.List<weak Gd.MainBoxChild> get_selected_children ();
149		public bool get_selection_mode ();
150		public bool get_show_primary_text ();
151		public bool get_show_secondary_text ();
152		public abstract void select_all ();
153		public abstract void select_child (Gd.MainBoxChild child);
154		public void set_model (GLib.ListModel? model);
155		public void set_selection_mode (bool selection_mode);
156		public void set_show_primary_text (bool show_primary_text);
157		public void set_show_secondary_text (bool show_secondary_text);
158		public void toggle_selection_for_child (Gd.MainBoxChild child, bool select_range);
159		public abstract void unselect_all ();
160		public abstract void unselect_child (Gd.MainBoxChild child);
161		[NoAccessorMethod]
162		public abstract bool gd_selection_mode { get; set; }
163		public abstract string last_selected_id { get; }
164		public abstract GLib.ListModel model { get; set; }
165		[ConcreteAccessor]
166		public abstract bool show_primary_text { get; set; }
167		[ConcreteAccessor]
168		public abstract bool show_secondary_text { get; set; }
169		public signal void item_activated (Gd.MainBoxChild object);
170		public signal void selection_changed ();
171		public signal void selection_mode_request ();
172	}
173	[CCode (cheader_filename = "libgd/gd.h", type_cname = "GdMainBoxItemInterface", type_id = "gd_main_box_item_get_type ()")]
174	public interface MainBoxItem : GLib.Object {
175		public abstract Cairo.Surface icon { get; }
176		public abstract string id { get; }
177		[ConcreteAccessor]
178		public abstract int64 mtime { get; }
179		public abstract string primary_text { get; }
180		[ConcreteAccessor]
181		public abstract bool pulse { get; }
182		public abstract string secondary_text { get; }
183		public abstract string uri { get; }
184	}
185	[CCode (cheader_filename = "libgd/gd.h", type_id = "gd_main_view_generic_get_type ()")]
186	public interface MainViewGeneric : Gtk.Widget {
187		public abstract unowned Gtk.TreeModel get_model ();
188		public abstract Gtk.TreePath get_path_at_pos (int x, int y);
189		public abstract void scroll_to_path (Gtk.TreePath path);
190		public void select_all ();
191		public abstract void set_model (Gtk.TreeModel? model);
192		public void set_rubberband_range (Gtk.TreePath start, Gtk.TreePath end);
193		public abstract void set_selection_mode (bool selection_mode);
194		public void unselect_all ();
195		public signal void view_selection_changed ();
196	}
197	[CCode (cheader_filename = "libgd/gd.h", cprefix = "GD_MAIN_BOX_", has_type_id = false)]
198	public enum MainBoxType {
199		ICON,
200		LIST
201	}
202	[CCode (cheader_filename = "libgd/gd.h", cprefix = "GD_MAIN_COLUMN_", has_type_id = false)]
203	public enum MainColumns {
204		ID,
205		URI,
206		PRIMARY_TEXT,
207		SECONDARY_TEXT,
208		ICON,
209		MTIME,
210		SELECTED,
211		PULSE,
212		LAST
213	}
214	[CCode (cheader_filename = "libgd/gd.h")]
215	public static Cairo.Surface copy_image_surface (Cairo.Surface surface);
216	[CCode (cheader_filename = "libgd/gd.h")]
217	public static Cairo.Surface create_surface_with_counter (Gtk.Widget widget, Cairo.Surface @base, int number);
218	[CCode (cheader_filename = "libgd/gd.h")]
219	public static GLib.Icon create_symbolic_icon (string name, int base_size);
220	[CCode (cheader_filename = "libgd/gd.h")]
221	public static GLib.Icon create_symbolic_icon_for_scale (string name, int base_size, int scale);
222	[CCode (cheader_filename = "libgd/gd.h")]
223	public static Gdk.Pixbuf embed_image_in_frame (Gdk.Pixbuf source_image, string frame_image_url, Gtk.Border slice_width, Gtk.Border border_width);
224	[CCode (cheader_filename = "libgd/gd.h")]
225	public static Cairo.Surface embed_surface_in_frame (Cairo.Surface source_image, string frame_image_url, Gtk.Border slice_width, Gtk.Border border_width);
226	[CCode (cheader_filename = "libgd/gd.h")]
227	public static void ensure_types ();
228	[CCode (cheader_filename = "libgd/gd.h")]
229	public static void entry_focus_hack (Gtk.Widget entry, Gdk.Device device);
230}
231