23 #ifndef __H2D_VIEW_SUPPORT_H
24 #define __H2D_VIEW_SUPPORT_H
48 inline void enter() { pthread_mutex_lock(&mutex); };
49 inline void leave() { pthread_mutex_unlock(&mutex); };
51 inline void wait_keypress() { pthread_cond_wait(&cond_keypress, &mutex); };
52 inline void signal_close() { pthread_cond_broadcast(&cond_close); };
53 inline void wait_close() { pthread_cond_wait(&cond_close, &mutex); };
70 int add_view(View* view,
int x,
int y,
int width,
int height,
const char* title);
79 extern void on_display_stub(
void);
80 extern void on_reshape_stub(
int width,
int height);
81 extern void on_mouse_move_stub(
int x,
int y);
82 extern void on_key_down_stub(
unsigned char key,
int x,
int y);
83 extern void on_special_key_stub(
int key,
int x,
int y);
84 extern void on_entry_stub(
int state);
85 extern void on_mouse_click_stub(
int button,
int state,
int x,
int y);
86 extern void on_close_stub();