2 * Copyright (C) 2003 Robert Kooima
4 * NEVERBALL is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published
6 * by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
21 /*---------------------------------------------------------------------------*/
23 #define GUI_FACE N_("ttf/DejaVuSans-Bold.ttf")
34 #define GUI_LFT (GUI_NW | GUI_SW)
35 #define GUI_RGT (GUI_NE | GUI_SE)
36 #define GUI_TOP (GUI_NW | GUI_NE)
37 #define GUI_BOT (GUI_SW | GUI_SE)
38 #define GUI_ALL (GUI_TOP | GUI_BOT)
40 extern const GLfloat gui_wht[4];
41 extern const GLfloat gui_yel[4];
42 extern const GLfloat gui_red[4];
43 extern const GLfloat gui_blu[4];
44 extern const GLfloat gui_grn[4];
45 extern const GLfloat gui_blk[4];
46 extern const GLfloat gui_gry[4];
48 /*---------------------------------------------------------------------------*/
53 /*---------------------------------------------------------------------------*/
62 void gui_set_label(int, const char *);
63 void gui_set_image(int, const char *);
64 void gui_set_multi(int, const char *);
65 void gui_set_count(int, int);
66 void gui_set_clock(int, int);
67 void gui_set_color(int, const float *, const float *);
68 void gui_set_trunc(int, enum trunc);
70 /*---------------------------------------------------------------------------*/
78 int gui_image(int, const char *, int, int);
79 int gui_start(int, const char *, int, int, int);
80 int gui_state(int, const char *, int, int, int);
81 int gui_label(int, const char *, int, int, const float *, const float *);
82 int gui_multi(int, const char *, int, int, const float *, const float *);
83 int gui_count(int, int, int, int);
84 int gui_clock(int, int, int, int);
87 /*---------------------------------------------------------------------------*/
89 void gui_dump(int, int);
90 void gui_layout(int, int, int);
91 int gui_search(int, int, int);
92 int gui_active(int, int, int);
95 /*---------------------------------------------------------------------------*/
98 void gui_pulse(int, float);
99 void gui_timer(int, float);
100 int gui_point(int, int, int);
101 int gui_stick(int, int, int);
102 void gui_stuck(void);
108 void gui_toggle(int);
110 /*---------------------------------------------------------------------------*/