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 /* Glk program loaded in widget */
27 /* Thread in which Glk program is run */
29 /* Event queue and threading stuff */
32 GCond *event_queue_not_empty;
33 GCond *event_queue_not_full;
36 gboolean abort_signalled;
37 /* User-defined interrupt handler */
38 void (*interrupt_handler)(void);
39 /* Global tree of all windows */
41 /* List of filerefs currently in existence */
44 strid_t current_stream;
45 /* List of streams currently in existence */
49 #define CHIMARA_GLK_PRIVATE(obj) \
50 (G_TYPE_INSTANCE_GET_PRIVATE((obj), CHIMARA_TYPE_GLK, ChimaraGlkPrivate))
54 #endif /* __CHIMARA_GLK_PRIVATE_H__ */