summaryrefslogtreecommitdiff
path: root/src/c_fl_input.h
blob: 38bfc7e559e58b3ea280b14e7b3dfaa3f596c4f3 (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_INPUT_GUARD
#define FL_INPUT_GUARD




typedef void* INPUT;




extern "C" void input_set_draw_hook(INPUT n, void * d);
extern "C" void fl_input_draw(INPUT n);
extern "C" void input_set_handle_hook(INPUT i, void * h);
extern "C" int fl_input_handle(INPUT i, int e);




extern "C" INPUT new_fl_input(int x, int y, int w, int h, char* label);
extern "C" void free_fl_input(INPUT i);




extern "C" int fl_input_copy(INPUT i);
extern "C" int fl_input_cut(INPUT i);
extern "C" int fl_input_cut2(INPUT i, int b);
extern "C" int fl_input_cut3(INPUT i, int a, int b);
extern "C" int fl_input_copy_cuts(INPUT i);
extern "C" int fl_input_undo(INPUT i);


extern "C" int fl_input_get_readonly(INPUT i);
extern "C" void fl_input_set_readonly(INPUT i, int t);
extern "C" int fl_input_get_tab_nav(INPUT i);
extern "C" void fl_input_set_tab_nav(INPUT i, int t);
extern "C" int fl_input_get_wrap(INPUT i);
extern "C" void fl_input_set_wrap(INPUT i, int t);


extern "C" int fl_input_get_input_type(INPUT i);
extern "C" void fl_input_set_input_type(INPUT i, int t);
extern "C" unsigned long fl_input_get_shortcut(INPUT i);
extern "C" void fl_input_set_shortcut(INPUT i, unsigned long t);
extern "C" int fl_input_get_mark(INPUT i);
extern "C" int fl_input_set_mark(INPUT i, int t);
extern "C" int fl_input_get_position(INPUT i);
extern "C" int fl_input_set_position(INPUT i, int t);


extern "C" unsigned int fl_input_index(INPUT i, int p);
extern "C" int fl_input_insert(INPUT i, const char * s, int l);
extern "C" int fl_input_replace(INPUT i, int b, int e, const char * s, int l);
extern "C" const char * fl_input_get_value(INPUT i);
extern "C" void fl_input_set_value(INPUT i, char * s, int len);


extern "C" int fl_input_get_maximum_size(INPUT i);
extern "C" void fl_input_set_maximum_size(INPUT i, int t);
extern "C" int fl_input_get_size(INPUT i);


extern "C" unsigned int fl_input_get_cursor_color(INPUT i);
extern "C" void fl_input_set_cursor_color(INPUT i, unsigned int t);
extern "C" unsigned int fl_input_get_textcolor(INPUT i);
extern "C" void fl_input_set_textcolor(INPUT i, unsigned int t);
extern "C" int fl_input_get_textfont(INPUT i);
extern "C" void fl_input_set_textfont(INPUT i, int t);
extern "C" int fl_input_get_textsize(INPUT i);
extern "C" void fl_input_set_textsize(INPUT i, int t);


extern "C" void fl_input_set_size(INPUT i, int w, int h);


#endif