Rev 6457 | Rev 6470 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6457 | Rev 6466 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | 20 | ||
21 | /* Users can use members above this */ |
21 | /* Users can use members above this */ |
22 | unsigned int size_of_str; |
22 | unsigned int size_of_str; |
Line -... | Line 23... | ||
- | 23 | }check_box; |
|
- | 24 | ||
- | 25 | extern void (*check_box_draw2)(check_box *) __attribute__((__stdcall__)); |
|
- | 26 | extern void (*check_box_mouse2)(check_box *)__attribute__((__stdcall__)); |
|
23 | }check_box; |
27 | extern void (*init_checkbox2)(check_box *)__attribute__((__stdcall__)); |
24 | 28 | ||
25 | check_box* kolibri_new_check_box(unsigned int tlx, unsigned int tly, unsigned int sizex, unsigned int sizey, char *label_text) |
29 | check_box* kolibri_new_check_box(unsigned int tlx, unsigned int tly, unsigned int sizex, unsigned int sizey, char *label_text) |
26 | { |
30 | { |
27 | check_box* new_checkbox = (check_box *)malloc(sizeof(check_box)); |
31 | check_box* new_checkbox = (check_box *)malloc(sizeof(check_box)); |
Line 32... | Line 36... | ||
32 | new_checkbox -> border_color = kolibri_color_table.color_work_graph; |
36 | new_checkbox -> border_color = kolibri_color_table.color_work_graph; |
33 | new_checkbox -> text_color = kolibri_color_table.color_work_text; |
37 | new_checkbox -> text_color = kolibri_color_table.color_work_text; |
34 | new_checkbox -> text = label_text; |
38 | new_checkbox -> text = label_text; |
35 | new_checkbox -> flags = 0x00000008; |
39 | new_checkbox -> flags = 0x00000008; |
Line -... | Line 40... | ||
- | 40 | ||
- | 41 | (*init_checkbox2)(new_checkbox); // count text width for mouse action and set flags |
|
36 | 42 | ||
37 | return new_checkbox; |
43 | return new_checkbox; |
Line 38... | Line -... | ||
38 | } |
- | |
39 | - | ||
Line 40... | Line 44... | ||
40 | extern void (*check_box_draw2)(check_box *) __attribute__((__stdcall__)); |
44 | } |