1 
2 struct rawbm
3 {
4   uint16  w;
5   uint16  h;
6   int     fpen, bpen;
7   int     findex;
8   BOOL    jam2;
9   BOOL    fpenset, bpenset, fontset;
10 #ifndef __SDL_WRAPPER__
11   struct RastPort rp;
12   struct BitMap   *bm;
13   int     baseline;
14 #else
15   struct SDL_Surface *srf;
16   SDL_Color fsc, bsc;
17   TTF_Font *font;
18   int     offx, offy;
19 #endif
20 };
21 
22 struct textbox
23 {
24   int16  x, y;
25   int16  w;
26   TEXT  *content;
27   int32  maxlen;
28   int16  flags;
29   int32  spos;
30   int32  cpos;
31   int16  inpanel;
32   struct rawbm bm;
33 };
34 
35 void gui_pre_init( void );
36 BOOL gui_init( void );
37 BOOL gui_maybe_quit( void );
38 void gui_shutdown( void );
39 void gui_handler( uint32 gotsigs );
40 int32 gui_req( uint32 img, const TEXT *title, const TEXT *reqtxt, const TEXT *buttons );
41 void gui_render_tunepanel( BOOL force );
42 void gui_render_tracker( BOOL force );
43 void gui_render_perf( struct ahx_tune *at, struct ahx_instrument *ins, BOOL force );
44 void gui_set_various_things( struct ahx_tune *at );
45 void gui_render_inslistb( BOOL force );
46 void gui_render_inslist( BOOL force );
47 void gui_render_tbox( struct rawbm *bm, struct textbox *tb );
48 void gui_render_tabs( void );
49 void gui_render_vumeters( void );
50 void gui_render_wavemeter( void );
51 void gui_render_everything( void );
52 BOOL gui_restart( void );
53 
54 BOOL make_image( struct rawbm *bm, uint16 w, uint16 h );
55 BOOL open_image( const TEXT *name, struct rawbm *bm );
56 
57 void set_fcol(struct rawbm *bm, uint32 col);
58 void fillrect_xy(struct rawbm *bm, int x, int y, int x2, int y2);
59 void bm_to_bm(const struct rawbm *src, int sx, int sy, struct rawbm *dest, int dx, int dy, int w, int h);
60 
61 
62 enum
63 {
64   D_IDLE = 0,
65   D_EDITING,
66   D_PLAYING,
67   D_RECORDING
68 };
69 
70 enum
71 {
72   E_POS = 0,
73   E_TRACK
74 };
75 
76 enum
77 {
78   PN_TRACKER = 0,
79   PN_INSED,
80   PN_END
81 };
82 
83 enum
84 {
85   TB_SONGNAME = 0,
86   TB_INSNAME,
87   TB_INSNAME2,
88   TB_END
89 };
90 
91 #define FONT_FIX 0
92 #define FONT_SFX 1
93 #define FONT_PRP 2
94