Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
[projects/chimara/chimara.git] / libchimara / chimara.vapi
1 /* chimara.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "Chimara", lower_case_cprefix = "chimara_", gir_namespace = "Chimara", gir_version = "1.0")]
4 namespace Chimara {
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)]
8                 public Glk ();
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);
27                 public void stop ();
28                 public void update_style ();
29                 public void wait ();
30                 public bool interactive { get; set construct; }
31                 [NoAccessorMethod]
32                 public string program_info { get; }
33                 [NoAccessorMethod]
34                 public string program_name { get; }
35                 public bool protect { get; set construct; }
36                 public uint spacing { get; set construct; }
37                 [NoAccessorMethod]
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 ();
46         }
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)]
50                 public IF ();
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);
56                 [NoAccessorMethod]
57                 public bool expand_abbreviations { get; set construct; }
58                 [NoAccessorMethod]
59                 public string graphics_file { get; set construct; }
60                 [NoAccessorMethod]
61                 public bool ignore_errors { get; set construct; }
62                 [NoAccessorMethod]
63                 public uint interpreter_number { get; set construct; }
64                 [NoAccessorMethod]
65                 public bool piracy_mode { get; set construct; }
66                 [NoAccessorMethod]
67                 public int random_seed { get; set; }
68                 [NoAccessorMethod]
69                 public bool random_seed_set { get; set construct; }
70                 [NoAccessorMethod]
71                 public bool tandy_bit { get; set construct; }
72                 [NoAccessorMethod]
73                 public bool typo_correction { get; set construct; }
74                 public signal void command (string object, string p0);
75         }
76         [CCode (cprefix = "CHIMARA_GLK_TEXT_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
77         public enum GlkWindowType {
78                 BUFFER,
79                 GRID
80         }
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")]
84                 FORMAT_Z5,
85                 [CCode (cname = "CHIMARA_IF_FORMAT_Z6")]
86                 FORMAT_Z6,
87                 [CCode (cname = "CHIMARA_IF_FORMAT_Z8")]
88                 FORMAT_Z8,
89                 [CCode (cname = "CHIMARA_IF_FORMAT_Z_BLORB")]
90                 FORMAT_Z_BLORB,
91                 [CCode (cname = "CHIMARA_IF_FORMAT_GLULX")]
92                 FORMAT_GLULX,
93                 [CCode (cname = "CHIMARA_IF_FORMAT_GLULX_BLORB")]
94                 FORMAT_GLULX_BLORB
95         }
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")]
99                 INTERPRETER_FROTZ,
100                 [CCode (cname = "CHIMARA_IF_INTERPRETER_NITFOL")]
101                 INTERPRETER_NITFOL,
102                 [CCode (cname = "CHIMARA_IF_INTERPRETER_GLULXE")]
103                 INTERPRETER_GLULXE,
104                 [CCode (cname = "CHIMARA_IF_INTERPRETER_GIT")]
105                 INTERPRETER_GIT
106         }
107         [CCode (cprefix = "CHIMARA_IF_ZMACHINE_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
108         public enum IFZmachineVersion {
109                 DEFAULT,
110                 DECSYSTEM_20,
111                 APPLE_IIE,
112                 MACINTOSH,
113                 AMIGA,
114                 ATARI_ST,
115                 IBM_PC,
116                 COMMODORE_128,
117                 COMMODORE_64,
118                 APPLE_IIC,
119                 APPLE_IIGS,
120                 TANDY_COLOR
121         }
122         [CCode (cprefix = "CHIMARA_RESOURCE_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
123         public enum ResourceType {
124                 SOUND,
125                 IMAGE
126         }
127         [CCode (cprefix = "ERROR_", cheader_filename = "libchimara/chimara-glk.h,libchimara/chimara-if.h")]
128         public errordomain Error {
129                 LOAD_MODULE_ERROR,
130                 NO_GLK_MAIN,
131                 PLUGIN_NOT_FOUND,
132                 PLUGIN_ALREADY_RUNNING,
133         }
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 ();
138 }