1
by Devid Antonio Filoni
Import upstream version 0.4.2+dfsg |
1 |
/*
|
2 |
* Vala Bindings for ige-mac-integration 0.8.2
|
|
3 |
*
|
|
4 |
* http://developer.imendio.com/projects/gtk-macosx/integration
|
|
5 |
*/
|
|
6 |
||
7 |
[CCode (cprefix = "Ige", lower_case_cprefix = "ige_")] |
|
8 |
namespace Ige { |
|
9 |
||
10 |
[Compact] |
|
11 |
[CCode (cheader_filename = "ige-mac-integration.h")] |
|
12 |
public class MacMenuGroup { |
|
13 |
}
|
|
14 |
||
15 |
[CCode (cheader_filename = "ige-mac-integration.h")] |
|
16 |
namespace MacMenu { |
|
17 |
public static void set_menu_bar (Gtk.MenuShell menu_shell); |
|
18 |
public static void set_quit_menu_item (Gtk.MenuItem menu_item); |
|
19 |
public static Ige.MacMenuGroup add_app_menu_group (); |
|
20 |
public static void add_app_menu_item (Ige.MacMenuGroup group, Gtk.MenuItem menu_item, string? label = null); |
|
21 |
public static bool handle_menu_event (Gdk.EventKey event); |
|
22 |
public static void set_global_key_handler_enabled (bool enabled); |
|
23 |
public static void connect_window_key_handler (Gtk.Window window); |
|
24 |
}
|
|
25 |
||
26 |
[CCode (cheader_filename = "ige-mac-integration.h")] |
|
27 |
public class MacDock : GLib.Object { |
|
28 |
[CCode (has_construct_function = false)] |
|
29 |
public MacDock (); |
|
30 |
public static Ige.MacDock get_default (); |
|
31 |
public void set_icon_from_pixbuf (Gdk.Pixbuf? pixbuf); |
|
32 |
public void set_icon_from_resource (Ige.MacBundle bundle, string name, string type, string subdir); |
|
33 |
public void set_overlay_from_pixbuf (Gdk.Pixbuf pixbuf); |
|
34 |
public void set_overlay_from_resource (Ige.MacBundle bundle, string name, string type, string subdir); |
|
35 |
public Ige.MacAttentionRequest attention_request (Ige.MacAttentionType type); |
|
36 |
public void attention_cancel (Ige.MacAttentionRequest request); |
|
37 |
public signal void clicked (); |
|
38 |
public signal void open_documents (); |
|
39 |
public signal void quit_activate (); |
|
40 |
}
|
|
41 |
||
42 |
[Compact] |
|
43 |
[CCode (cheader_filename = "ige-mac-integration.h")] |
|
44 |
public class MacAttentionRequest { |
|
45 |
}
|
|
46 |
||
47 |
[CCode (cprefix = "IGE_MAC_ATTENTION_", cheader_filename = "ige-mac-integration.h")] |
|
48 |
public enum MacAttentionType { |
|
49 |
CRITICAL, |
|
50 |
INFO
|
|
51 |
}
|
|
52 |
||
53 |
[CCode (cheader_filename = "ige-mac-integration.h")] |
|
54 |
public class MacBundle : GLib.Object { |
|
55 |
[CCode (has_construct_function = false)] |
|
56 |
public MacBundle (); |
|
57 |
public static Ige.MacBundle get_default (); |
|
58 |
public void setup_environment (); |
|
59 |
public string get_id (); |
|
60 |
public string get_path (); |
|
61 |
public bool is_app_bundle (); |
|
62 |
public string get_localedir (); |
|
63 |
public string get_datadir (); |
|
64 |
public string get_resource_path (string name, string type, string subdir); |
|
65 |
}
|
|
66 |
}
|