1 #ifndef __CHIMARA_GLK_PRIVATE_H__
2 #define __CHIMARA_GLK_PRIVATE_H__
6 #include <pango/pango.h>
8 #include "chimara-glk.h"
12 typedef struct _ChimaraGlkPrivate ChimaraGlkPrivate;
14 struct _ChimaraGlkPrivate {
15 /* Pointer back to the widget itself for use in thread */
17 /* Whether user input is expected */
19 /* Whether file operations are allowed */
21 /* Font description of proportional font */
22 PangoFontDescription *default_font_desc;
23 /* Font description of monospace font */
24 PangoFontDescription *monospace_font_desc;
25 /* Spacing between Glk windows */
27 /* Glk program loaded in widget */
29 /* Thread in which Glk program is run */
31 /* Event queue and threading stuff */
34 GCond *event_queue_not_empty;
35 GCond *event_queue_not_full;
38 gboolean abort_signalled;
39 /* User-defined interrupt handler */
40 void (*interrupt_handler)(void);
41 /* Global tree of all windows */
43 /* List of filerefs currently in existence */
46 strid_t current_stream;
47 /* List of streams currently in existence */
53 #define CHIMARA_GLK_PRIVATE(obj) \
54 (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate))
58 #endif /* __CHIMARA_GLK_PRIVATE_H__ */