1 /* Copyright / licensing information here. */
3 #ifndef __CHIMARA_GLK_H__
4 #define __CHIMARA_GLK_H__
8 #include <pango/pango.h>
12 #define CHIMARA_TYPE_GLK (chimara_glk_get_type())
13 #define CHIMARA_GLK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CHIMARA_TYPE_GLK, ChimaraGlk))
14 #define CHIMARA_GLK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CHIMARA_TYPE_GLK, ChimaraGlkClass))
15 #define CHIMARA_IS_GLK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHIMARA_TYPE_GLK))
16 #define CHIMARA_IS_GLK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CHIMARA_TYPE_GLK))
17 #define CHIMARA_GLK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CHIMARA_TYPE_GLK, ChimaraGlkClass))
22 * This structure contains no public members.
24 typedef struct _ChimaraGlk {
25 GtkContainer parent_instance;
30 typedef struct _ChimaraGlkClass {
31 GtkContainerClass parent_class;
33 void(* stopped) (ChimaraGlk *self);
34 void(* started) (ChimaraGlk *self);
35 void(* waiting) (ChimaraGlk *self);
36 void(* char_input) (ChimaraGlk *self, guint32 window_rock, guint keysym);
37 void(* line_input) (ChimaraGlk *self, guint32 window_rock, gchar *text);
38 void(* text_buffer_output) (ChimaraGlk *self, guint32 window_rock, gchar *text);
41 GType chimara_glk_get_type(void) G_GNUC_CONST;
42 GtkWidget *chimara_glk_new(void);
43 void chimara_glk_set_interactive(ChimaraGlk *glk, gboolean interactive);
44 gboolean chimara_glk_get_interactive(ChimaraGlk *glk);
45 void chimara_glk_set_protect(ChimaraGlk *glk, gboolean protect);
46 gboolean chimara_glk_get_protect(ChimaraGlk *glk);
47 void chimara_glk_set_default_font_description(ChimaraGlk *glk, PangoFontDescription *font);
48 void chimara_glk_set_default_font_string(ChimaraGlk *glk, const gchar *font);
49 PangoFontDescription *chimara_glk_get_default_font_description(ChimaraGlk *glk);
50 void chimara_glk_set_monospace_font_description(ChimaraGlk *glk, PangoFontDescription *font);
51 void chimara_glk_set_monospace_font_string(ChimaraGlk *glk, const gchar *font);
52 PangoFontDescription *chimara_glk_get_monospace_font_description(ChimaraGlk *glk);
53 void chimara_glk_set_spacing(ChimaraGlk *glk, guint spacing);
54 guint chimara_glk_get_spacing(ChimaraGlk *glk);
55 gboolean chimara_glk_run(ChimaraGlk *glk, gchar *plugin, int argc, char *argv[], GError **error);
56 void chimara_glk_stop(ChimaraGlk *glk);
57 void chimara_glk_wait(ChimaraGlk *glk);
61 #endif /* __CHIMARA_GLK_H__ */