summaryrefslogtreecommitdiff
path: root/src/c_fl_value_input.h
blob: f9eeff2460fbab4994d73ed7b587127c58bc2366 (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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_VALUE_INPUT_GUARD
#define FL_VALUE_INPUT_GUARD


typedef void* VALUEINPUT;


extern "C" VALUEINPUT new_fl_value_input(int x, int y, int w, int h, char* label);
extern "C" void free_fl_value_input(VALUEINPUT a);


extern "C" void * fl_value_input_get_input(VALUEINPUT v);


extern "C" unsigned int fl_value_input_get_cursor_color(VALUEINPUT v);
extern "C" void fl_value_input_set_cursor_color(VALUEINPUT v, unsigned int c);


extern "C" int fl_value_input_get_shortcut(VALUEINPUT v);
extern "C" void fl_value_input_set_shortcut(VALUEINPUT v, int k);


extern "C" int fl_value_input_is_soft(VALUEINPUT a);
extern "C" void fl_value_input_set_soft(VALUEINPUT a, int t);


extern "C" unsigned int fl_value_input_get_text_color(VALUEINPUT v);
extern "C" void fl_value_input_set_text_color(VALUEINPUT v, unsigned int c);
extern "C" int fl_value_input_get_text_font(VALUEINPUT v);
extern "C" void fl_value_input_set_text_font(VALUEINPUT v, int f);
extern "C" int fl_value_input_get_text_size(VALUEINPUT v);
extern "C" void fl_value_input_set_text_size(VALUEINPUT v, int s);


extern "C" void fl_value_input_resize(VALUEINPUT v, int x, int y, int w, int h);


extern "C" void fl_value_input_draw(VALUEINPUT a);
extern "C" int fl_value_input_handle(VALUEINPUT a, int e);


#endif