1 #ifndef __CHIMARA_GLK_PRIVATE_H__
2 #define __CHIMARA_GLK_PRIVATE_H__
6 #include <pango/pango.h>
9 #include "chimara-glk.h"
13 typedef struct _ChimaraGlkPrivate ChimaraGlkPrivate;
15 struct _ChimaraGlkPrivate {
16 /* Pointer back to the widget itself for use in thread */
18 /* Whether user input is expected */
20 /* Whether file operations are allowed */
22 /* Font description of proportional font */
23 PangoFontDescription *default_font_desc;
24 /* Font description of monospace font */
25 PangoFontDescription *monospace_font_desc;
26 /* Spacing between Glk windows */
28 /* Glk program loaded in widget */
30 /* Thread in which Glk program is run */
32 /* Event queue and threading stuff */
35 GCond *event_queue_not_empty;
36 GCond *event_queue_not_full;
39 gboolean abort_signalled;
40 /* User-defined interrupt handler */
41 void (*interrupt_handler)(void);
42 /* Global tree of all windows */
44 /* List of filerefs currently in existence */
47 strid_t current_stream;
48 /* List of streams currently in existence */
52 /* Current resource blorb map */
53 giblorb_map_t *resource_map;
54 /* File stream pointing to the blorb used as current resource map */
55 strid_t resource_file;
58 #define CHIMARA_GLK_PRIVATE(obj) \
59 (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate))
63 #endif /* __CHIMARA_GLK_PRIVATE_H__ */