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 /* Window arrangement locks */
42 gboolean ignore_next_arrange_event;
43 /* User-defined interrupt handler */
44 void (*interrupt_handler)(void);
45 /* Global tree of all windows */
47 /* List of filerefs currently in existence */
50 strid_t current_stream;
51 /* List of streams currently in existence */
55 /* Current resource blorb map */
56 giblorb_map_t *resource_map;
57 /* File stream pointing to the blorb used as current resource map */
58 strid_t resource_file;
61 #define CHIMARA_GLK_PRIVATE(obj) \
62 (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate))
66 #endif /* __CHIMARA_GLK_PRIVATE_H__ */