1 /* chimara.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Chimara", lower_case_cprefix = "chimara_", gir_namespace = "Chimara", gir_version = "1.0")]
5 [CCode (cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
6 public class Glk : Gtk.Container, Atk.Implementor, Gtk.Buildable {
7 [CCode (type = "GtkWidget*", has_construct_function = false)]
9 public void feed_char_input (uint32 keyval);
10 public void feed_line_input (string text);
11 public bool get_interactive ();
12 public bool get_protect ();
13 public bool get_running ();
14 public uint get_spacing ();
15 public unowned Gtk.TextTag get_tag (Chimara.GlkWindowType window, string name);
16 public unowned string[] get_tag_names (out uint num_tags);
17 public bool is_char_input_pending ();
18 public bool is_line_input_pending ();
19 public bool run (string plugin, int argc, string argv) throws GLib.Error;
20 public bool set_css_from_file (string filename) throws GLib.Error;
21 public void set_css_from_string (string css);
22 public void set_css_to_default ();
23 public void set_interactive (bool interactive);
24 public void set_protect (bool protect);
25 public void set_resource_load_callback (owned Chimara.ResourceLoadFunc func);
26 public void set_spacing (uint spacing);
28 public void update_style ();
30 public bool interactive { get; set construct; }
32 public string program_info { get; }
34 public string program_name { get; }
35 public bool protect { get; set construct; }
36 public uint spacing { get; set construct; }
38 public string story_name { get; }
39 public signal void char_input (uint object, uint p0);
40 public signal void iliad_screen_update (bool object);
41 public signal void line_input (uint object, string p0);
42 public signal void started ();
43 public signal void stopped ();
44 public signal void text_buffer_output (uint object, string p0);
45 public signal void waiting ();
47 [CCode (cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
48 public class IF : Chimara.Glk, Atk.Implementor, Gtk.Buildable {
49 [CCode (type = "GtkWidget*", has_construct_function = false)]
51 public Chimara.IFFormat get_format ();
52 public Chimara.IFInterpreter get_interpreter ();
53 public Chimara.IFInterpreter get_preferred_interpreter (Chimara.IFFormat format);
54 public bool run_game (string gamefile) throws GLib.Error;
55 public void set_preferred_interpreter (Chimara.IFFormat format, Chimara.IFInterpreter interpreter);
57 public bool expand_abbreviations { get; set construct; }
59 public string graphics_file { get; set construct; }
61 public bool ignore_errors { get; set construct; }
63 public uint interpreter_number { get; set construct; }
65 public bool piracy_mode { get; set construct; }
67 public int random_seed { get; set; }
69 public bool random_seed_set { get; set construct; }
71 public bool tandy_bit { get; set construct; }
73 public bool typo_correction { get; set construct; }
74 public signal void command (string object, string p0);
76 [CCode (cprefix = "CHIMARA_GLK_TEXT_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
77 public enum GlkWindowType {
81 [CCode (cprefix = "CHIMARA_IF_FORMAT_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
82 public enum IFFormat {
83 [CCode (cname = "CHIMARA_IF_FORMAT_Z5")]
85 [CCode (cname = "CHIMARA_IF_FORMAT_Z6")]
87 [CCode (cname = "CHIMARA_IF_FORMAT_Z8")]
89 [CCode (cname = "CHIMARA_IF_FORMAT_Z_BLORB")]
91 [CCode (cname = "CHIMARA_IF_FORMAT_GLULX")]
93 [CCode (cname = "CHIMARA_IF_FORMAT_GLULX_BLORB")]
96 [CCode (cprefix = "CHIMARA_IF_INTERPRETER_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
97 public enum IFInterpreter {
98 [CCode (cname = "CHIMARA_IF_INTERPRETER_FROTZ")]
100 [CCode (cname = "CHIMARA_IF_INTERPRETER_NITFOL")]
102 [CCode (cname = "CHIMARA_IF_INTERPRETER_GLULXE")]
104 [CCode (cname = "CHIMARA_IF_INTERPRETER_GIT")]
107 [CCode (cprefix = "CHIMARA_IF_ZMACHINE_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
108 public enum IFZmachineVersion {
122 [CCode (cprefix = "CHIMARA_RESOURCE_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
123 public enum ResourceType {
127 [CCode (cprefix = "ERROR_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
128 public errordomain Error {
132 PLUGIN_ALREADY_RUNNING,
134 [CCode (cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h", instance_pos = 2.9)]
135 public delegate string ResourceLoadFunc (Chimara.ResourceType usage, uint32 resnum);
136 [CCode (cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
137 public static GLib.Quark error_quark ();