extern unsigned long LIGHTBLUE, LIGHTGREY, LIGHTGREEN, LIGHTCYAN,
LIGHTRED, VIOLET, YELLOW, WHITE;
-typedef enum {
- ecbOK
-} ecbReturn;
-
#define CBARGS (struct t_x11 *x11, XEvent *event, Window w, void *data)
-/* Callback function. Return FALSE to continue, TRUE to exit */
+/* Callback function. Return false to continue, true to exit */
typedef struct t_x11 {
Display *disp;
void (*GetNamedColor)(struct t_x11 *x11, const char *name, unsigned long *col);
void (*MainLoop)(struct t_x11 *x11);
void (*RegisterCallback)(struct t_x11 *x11, Window w, Window Parent,
- gmx_bool cb CBARGS, void *data);
+ bool cb CBARGS, void *data);
void (*UnRegisterCallback)(struct t_x11 *x11, Window w);
void (*SetInputMask)(struct t_x11 *x11, Window w, unsigned long mask);
unsigned long (*GetInputMask)(struct t_x11 *x11, Window w);
void (*Flush)(struct t_x11 *x11);
} t_x11;
-typedef gmx_bool CallBack CBARGS;
+typedef bool CallBack CBARGS;
typedef struct t_wlist {
Window w; /* The window itself */
* events. It is up to the window to destroy itself. The MainLoop
* routine exits when there are no more windows to manage, i.e. when
* all routines have called UnRegisterCallback, OR when one Callback
- * routine returns non-zero (TRUE).
+ * routine returns non-zero (true).
* 5. Call x11->CleanUp. This closes the display, and frees all
* memory allocated by x11 before.
*/