summaryrefslogtreecommitdiff
path: root/src/c_fl_event.h
blob: c126b5655c805487a6067eeecdb80b019b305060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


#ifndef FL_EVENT_GUARD
#define FL_EVENT_GUARD




extern "C" inline void fl_event_add_handler(void * f);
extern "C" inline void fl_event_set_event_dispatch(void * f);
extern "C" inline int fl_event_handle(int e, void * w);


extern "C" inline void * fl_event_get_grab();
extern "C" inline void fl_event_set_grab(void * w);
extern "C" inline void * fl_event_get_pushed();
extern "C" inline void fl_event_set_pushed(void * w);
extern "C" inline void * fl_event_get_belowmouse();
extern "C" inline void fl_event_set_belowmouse(void * w);
extern "C" inline void * fl_event_get_focus();
extern "C" inline void fl_event_set_focus(void * w);


extern "C" inline int fl_event_compose(int &d);
extern "C" inline void fl_event_compose_reset();
extern "C" inline const char * fl_event_text();
extern "C" inline int fl_event_length();


extern "C" inline int fl_event_get();
extern "C" inline unsigned long fl_event_state();
extern "C" inline int fl_event_check_state(unsigned long s);


extern "C" inline int fl_event_x();
extern "C" inline int fl_event_x_root();
extern "C" inline int fl_event_y();
extern "C" inline int fl_event_y_root();
extern "C" inline int fl_event_dx();
extern "C" inline int fl_event_dy();
extern "C" inline void fl_event_get_mouse(int &x, int &y);
extern "C" inline int fl_event_is_click();
extern "C" inline int fl_event_is_clicks();
extern "C" inline void fl_event_set_clicks(int c);
extern "C" inline int fl_event_button();
extern "C" inline int fl_event_button1();
extern "C" inline int fl_event_button2();
extern "C" inline int fl_event_button3();
extern "C" inline int fl_event_inside(int x, int y, int w, int h);


extern "C" inline unsigned long fl_event_key();
extern "C" inline unsigned long fl_event_original_key();
extern "C" inline int fl_event_key_during(unsigned long k);
extern "C" inline int fl_event_get_key(unsigned long k);
extern "C" inline int fl_event_ctrl();
extern "C" inline int fl_event_alt();
extern "C" inline int fl_event_command();
extern "C" inline int fl_event_shift();


#endif