-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathfltk.h
59 lines (46 loc) · 2.22 KB
/
fltk.h
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
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int go_fltk_run();
extern int go_fltk_lock();
extern void go_fltk_unlock();
extern void go_fltk_init_styles(void);
extern int go_fltk_set_scheme(const char *scheme);
extern void go_fltk_set_background_color(unsigned char r, unsigned char g, unsigned char b);
extern void go_fltk_set_background2_color(unsigned char r, unsigned char g, unsigned char b);
extern void go_fltk_set_boxtype(int i, int x, int y, int w, int h);
extern void go_fltk_set_foreground_color(unsigned char r, unsigned char g, unsigned char b);
extern void go_fltk_set_color(unsigned int col, unsigned char r, unsigned char g, unsigned char b);
extern void go_fltk_get_color(unsigned int col, unsigned char *r, unsigned char *g, unsigned char *b);
extern unsigned go_fltk_get_colorindex(unsigned int col);
extern const char *go_fltk_get_font(int font);
extern const char* go_fltk_get_font_name(int font, int* attributes);
extern void go_fltk_set_font(int font, const char* family);
extern void go_fltk_set_font2(int font, int font2);
extern int go_fltk_set_fonts(const char* xstarname);
extern void go_fltk_awake_null_message();
extern int go_fltk_awake(uintptr_t id);
extern int go_fltk_wait();
extern int go_fltk_wait_timed(double t);
extern int go_fltk_check();
extern void go_fltk_add_timeout(double t, uintptr_t id);
extern void go_fltk_repeat_timeout(double t, uintptr_t id);
extern void go_fltk_copy(const char* data, int len, int destination);
extern void go_fltk_dnd();
extern int go_fltk_screen_num(int x, int y);
extern void go_fltk_screen_work_area(int *x, int *y, int *w, int *h, int n);
extern void go_fltk_screen_dpi(float *w, float *h, int n);
extern int go_fltk_screen_count();
extern float go_fltk_screen_scale(int screenNum);
extern void go_fltk_set_screen_scale(int screenNum, float scale);
extern void go_fltk_set_keyboard_screen_scaling(int value);
extern int go_fltk_scrollbar_size();
extern void go_fltk_set_scrollbar_size(int size);
extern void go_fltk_set_menu_linespacing(int size);
extern int go_fltk_menu_linespacing();
extern int go_fltk_test_shortcut(int shortcut);
#ifdef __cplusplus
}
#endif