Rev 6456 | Rev 6589 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6456 | Rev 6457 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #define KOLIBRI_COLORIALOG_H |
2 | #define KOLIBRI_COLORIALOG_H |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | char cd_com_area_name[] = "FFFFFFFF_color_dialog"; |
4 | char cd_com_area_name[] = "FFFFFFFF_color_dialog"; |
Line 5... | Line 5... | ||
5 | char cd_start_path[] = "/rd/1/colrdial"; |
5 | char cd_start_path[] = "/rd/1/colrdial"; |
6 | 6 | ||
7 | struct color_dialog { |
7 | typedef struct { |
8 | unsigned int type; |
8 | unsigned int type; |
9 | unsigned int procinfo; |
9 | unsigned int procinfo; |
10 | unsigned int com_area_name; |
10 | unsigned int com_area_name; |
Line 16... | Line 16... | ||
16 | unsigned short x_start; |
16 | unsigned short x_start; |
17 | unsigned short y_size; |
17 | unsigned short y_size; |
18 | unsigned short y_start; |
18 | unsigned short y_start; |
19 | unsigned int color_type; |
19 | unsigned int color_type; |
20 | unsigned int color; |
20 | unsigned int color; |
21 | }; |
21 | }color_dialog; |
Line 22... | Line 22... | ||
22 | 22 | ||
Line 23... | Line 23... | ||
23 | void cd_fake_on_redraw(void) {} |
23 | void cd_fake_on_redraw(void) {} |
24 | 24 | ||
25 | struct open_dialog* kolibri_new_color_dialog(unsigned int type, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
25 | struct open_dialog* kolibri_new_color_dialog(unsigned int type, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
26 | { |
26 | { |
Line 27... | Line 27... | ||
27 | struct color_dialog *new_colordialog = (struct color_dialog *)malloc(sizeof(struct color_dialog)); |
27 | color_dialog *new_colordialog = (color_dialog *)malloc(sizeof(color_dialog)); |
28 | char *proc_info = (char *)calloc(1024, sizeof(char)); |
28 | char *proc_info = (char *)calloc(1024, sizeof(char)); |
29 | 29 | ||
Line 41... | Line 41... | ||
41 | new_colordialog -> color_type = 0; |
41 | new_colordialog -> color_type = 0; |
42 | new_colordialog -> color = 0; |
42 | new_colordialog -> color = 0; |
43 | return new_colordialog; |
43 | return new_colordialog; |
44 | } |
44 | } |
Line 45... | Line 45... | ||
45 | 45 | ||
46 | extern void (*ColorDialog_init)(struct open_dialog *) __attribute__((__stdcall__)); |
46 | extern void (*ColorDialog_init)(color_dialog *) __attribute__((__stdcall__)); |
47 | extern void (*ColorDialog_start)(struct open_dialog *) __attribute__((__stdcall__)); |
47 | extern void (*ColorDialog_start)(color_dialog *) __attribute__((__stdcall__)); |