summaryrefslogtreecommitdiff
path: root/vapi/metadata/Gtk-4.0-custom.vala
blob: 6d2070ecdaf72d077e5d9ea35976270eca4832bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace Gtk {
	[CCode (cheader_filename = "gtk/gtk.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)]
	public struct RecentData {
	}

	[CCode (type_id = "gtk_tree_model_get_type ()")]
	public interface TreeModel : GLib.Object {
		[HasEmitter]
		public virtual signal void rows_reordered (Gtk.TreePath path, Gtk.TreeIter iter, [CCode (array_length = false)] int[] new_order);
	}

	[CCode (has_typedef = false)]
	public delegate void BuildableParserStartElementFunc (BuildableParseContext context, string element_name, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_values) throws GLib.Error;
	[CCode (has_typedef = false)]
	public delegate void BuildableParserEndElementFunc (BuildableParseContext context, string element_name) throws GLib.Error;
	[CCode (has_typedef = false)]
	public delegate void BuildableParserTextFunc (BuildableParseContext context, string text, size_t text_len) throws GLib.Error;
	[CCode (has_typedef = false)]
	public delegate void BuildableParserErrorFunc (BuildableParseContext context, GLib.Error error);

	[CCode (cheader_filename = "gtk/gtk.h", has_type_id = false)]
	public struct BuildableParser {
		[CCode (delegate_target = false)]
		public unowned Gtk.BuildableParserStartElementFunc start_element;
		[CCode (delegate_target = false)]
		public unowned Gtk.BuildableParserEndElementFunc end_element;
		[CCode (delegate_target = false)]
		public unowned Gtk.BuildableParserTextFunc text;
		[CCode (delegate_target = false)]
		public unowned Gtk.BuildableParserErrorFunc error;
	}
}