summaryrefslogtreecommitdiff
path: root/src/c_fl_window.h
blob: f66876aa7f6e4f89a45ba17b465db98096c367e6 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80


#ifndef FL_WINDOW_GUARD
#define FL_WINDOW_GUARD




typedef void* WINDOW;




extern "C" inline void window_set_draw_hook(WINDOW n, void * d);
extern "C" inline void fl_window_draw(WINDOW n);
extern "C" inline void window_set_handle_hook(WINDOW n, void * h);
extern "C" inline int fl_window_handle(WINDOW n, int e);




extern "C" inline WINDOW new_fl_window(int x, int y, int w, int h, char* label);
extern "C" inline WINDOW new_fl_window2(int w, int h, char* label);
extern "C" inline void free_fl_window(WINDOW n);




extern "C" inline void fl_window_show(WINDOW n);
extern "C" inline void fl_window_hide(WINDOW n);
extern "C" inline int fl_window_shown(WINDOW n);
extern "C" inline void fl_window_wait_for_expose(WINDOW n);
extern "C" inline void fl_window_iconize(WINDOW n);
extern "C" inline void fl_window_make_current(WINDOW n);
extern "C" inline void fl_window_free_position(WINDOW n);


extern "C" inline unsigned int fl_window_fullscreen_active(WINDOW n);
extern "C" inline void fl_window_fullscreen(WINDOW n);
extern "C" inline void fl_window_fullscreen_off(WINDOW n);
extern "C" inline void fl_window_fullscreen_off2(WINDOW n, int x, int y, int w, int h);
extern "C" inline void fl_window_fullscreen_screens(WINDOW n, int t, int b, int l, int r);


extern "C" inline void fl_window_set_icon(WINDOW n, void * img);
extern "C" inline void fl_window_default_icon(void * img);
extern "C" inline const char * fl_window_get_iconlabel(WINDOW n);
extern "C" inline void fl_window_set_iconlabel(WINDOW n, const char * s);
extern "C" inline void fl_window_set_cursor(WINDOW n, int c);
extern "C" inline void fl_window_set_cursor2(WINDOW n, void * img, int x, int y);
extern "C" inline void fl_window_set_default_cursor(WINDOW n, int c);


extern "C" inline unsigned int fl_window_get_border(WINDOW n);
extern "C" inline void fl_window_set_border(WINDOW n, int b);
extern "C" inline unsigned int fl_window_get_override(WINDOW n);
extern "C" inline void fl_window_set_override(WINDOW n);
extern "C" inline unsigned int fl_window_modal(WINDOW n);
extern "C" inline unsigned int fl_window_non_modal(WINDOW n);
extern "C" inline void fl_window_clear_modal_states(WINDOW n);
extern "C" inline void fl_window_set_modal(WINDOW n);
extern "C" inline void fl_window_set_non_modal(WINDOW n);


extern "C" inline const char * fl_window_get_label(WINDOW n);
extern "C" inline void fl_window_set_label(WINDOW n, char* text);
extern "C" inline void fl_window_hotspot(WINDOW n, int x, int y, int s);
extern "C" inline void fl_window_hotspot2(WINDOW n, void * i, int s);
extern "C" inline void fl_window_size_range(WINDOW n, int lw, int lh, int hw, int hh, int dw, int dh, int a);
extern "C" inline void fl_window_shape(WINDOW n, void * p);


extern "C" inline int fl_window_get_x_root(WINDOW n);
extern "C" inline int fl_window_get_y_root(WINDOW n);
extern "C" inline int fl_window_get_decorated_w(WINDOW n);
extern "C" inline int fl_window_get_decorated_h(WINDOW n);


#endif