Release 0.6.0
[vala-lang.git] / vapi / libgnome-menu.vapi
blob8a00fc5b9a99fd24a8c813fb25e4a28f415eb68c
1 /* libgnome-menu.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GMenu", lower_case_cprefix = "gmenu_")]
4 namespace GMenu {
5         [Compact]
6         [CCode (ref_function = "gmenu_tree_ref", unref_function = "gmenu_tree_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
7         public class Tree {
8                 public void add_monitor (GMenu.TreeChangedFunc callback);
9                 public unowned GMenu.TreeDirectory get_directory_from_path (string path);
10                 public unowned string get_menu_file ();
11                 public unowned GMenu.TreeDirectory get_root_directory ();
12                 public void* get_user_data ();
13                 public static unowned GMenu.Tree lookup (string menu_file, GMenu.TreeFlags flags);
14                 public void remove_monitor (GMenu.TreeChangedFunc callback);
15                 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
16         }
17         [Compact]
18         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
19         public class TreeAlias : GMenu.TreeItem {
20                 public unowned GMenu.TreeDirectory get_directory ();
21                 public unowned GMenu.TreeItem get_item ();
22         }
23         [Compact]
24         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
25         public class TreeDirectory : GMenu.TreeItem {
26                 public unowned string get_comment ();
27                 public unowned GLib.SList<GMenu.TreeItem> get_contents ();
28                 public unowned string get_desktop_file_path ();
29                 public unowned string get_icon ();
30                 public bool get_is_nodisplay ();
31                 public unowned string get_menu_id ();
32                 public unowned string get_name ();
33                 public unowned GMenu.Tree get_tree ();
34                 public unowned string make_path (GMenu.TreeEntry entry);
35         }
36         [Compact]
37         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
38         public class TreeEntry : GMenu.TreeItem {
39                 public unowned string get_comment ();
40                 public unowned string get_desktop_file_id ();
41                 public unowned string get_desktop_file_path ();
42                 public unowned string get_exec ();
43                 public unowned string get_icon ();
44                 public bool get_is_excluded ();
45                 public bool get_is_nodisplay ();
46                 public bool get_launch_in_terminal ();
47                 public unowned string get_name ();
48         }
49         [Compact]
50         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
51         public class TreeHeader : GMenu.TreeItem {
52                 public unowned GMenu.TreeDirectory get_directory ();
53         }
54         [Compact]
55         [CCode (ref_function = "gmenu_tree_item_ref", unref_function = "gmenu_tree_item_unref", cheader_filename = "gnome-menus/gmenu-tree.h")]
56         public class TreeItem {
57                 public unowned GMenu.TreeDirectory get_parent ();
58                 public GMenu.TreeItemType get_type ();
59                 public void* get_user_data ();
60                 public void set_user_data (void* user_data, GLib.DestroyNotify dnotify);
61         }
62         [Compact]
63         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
64         public class TreeSeparator : GMenu.TreeItem {
65         }
66         [CCode (cprefix = "GMENU_TREE_FLAGS_", has_type_id = "0", cheader_filename = "gnome-menus/gmenu-tree.h")]
67         public enum TreeFlags {
68                 NONE,
69                 INCLUDE_EXCLUDED,
70                 SHOW_EMPTY,
71                 INCLUDE_NODISPLAY,
72                 MASK
73         }
74         [CCode (cprefix = "GMENU_TREE_ITEM_", has_type_id = "0", cheader_filename = "gnome-menus/gmenu-tree.h")]
75         public enum TreeItemType {
76                 INVALID,
77                 DIRECTORY,
78                 ENTRY,
79                 SEPARATOR,
80                 HEADER,
81                 ALIAS
82         }
83         [CCode (cheader_filename = "gnome-menus/gmenu-tree.h")]
84         public delegate void TreeChangedFunc (GMenu.Tree tree);