Rev 6456 | Rev 6466 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6456 | Rev 6457 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | enum { |
4 | enum { |
5 | TOP, |
5 | TOP, |
6 | BOTTON |
6 | BOTTON |
7 | }; |
7 | }; |
Line 8... | Line 8... | ||
8 | 8 | ||
9 | struct frame { |
9 | typedef struct { |
10 | unsigned int type; |
10 | unsigned int type; |
11 | uint16_t size_x; |
11 | uint16_t size_x; |
12 | uint16_t start_x; |
12 | uint16_t start_x; |
13 | uint16_t size_y; |
13 | uint16_t size_y; |
Line 19... | Line 19... | ||
19 | unsigned int text_position; |
19 | unsigned int text_position; |
20 | unsigned int font_number; |
20 | unsigned int font_number; |
21 | unsigned int font_size_y; |
21 | unsigned int font_size_y; |
22 | unsigned int font_color; |
22 | unsigned int font_color; |
23 | unsigned int font_backgr_color; |
23 | unsigned int font_backgr_color; |
24 | }; |
24 | }frame; |
Line 25... | Line 25... | ||
25 | 25 | ||
26 | struct frame* kolibri_new_frame(uint16_t tlx, uint16_t tly, uint16_t sizex, uint16_t sizey, unsigned int ext_col, unsigned int int_col, unsigned int draw_text_flag, char *text_pointer, unsigned int text_position, unsigned int font_color, unsigned int font_bgcolor) |
26 | frame* kolibri_new_frame(uint16_t tlx, uint16_t tly, uint16_t sizex, uint16_t sizey, unsigned int ext_col, unsigned int int_col, unsigned int draw_text_flag, char *text_pointer, unsigned int text_position, unsigned int font_color, unsigned int font_bgcolor) |
27 | { |
27 | { |
28 | struct frame *new_frame = (struct frame *)malloc(sizeof(struct frame)); |
28 | frame *new_frame = (frame *)malloc(sizeof(frame)); |
29 | new_frame -> type = 0; |
29 | new_frame -> type = 0; |
30 | new_frame -> size_x = sizex; |
30 | new_frame -> size_x = sizex; |
31 | new_frame -> start_x = tlx; |
31 | new_frame -> start_x = tlx; |
32 | new_frame -> size_y = sizey; |
32 | new_frame -> size_y = sizey; |
Line 41... | Line 41... | ||
41 | new_frame -> font_color = font_color; |
41 | new_frame -> font_color = font_color; |
42 | new_frame -> font_backgr_color = font_bgcolor; |
42 | new_frame -> font_backgr_color = font_bgcolor; |
43 | return new_frame; |
43 | return new_frame; |
44 | } |
44 | } |
Line 45... | Line 45... | ||
45 | 45 | ||
Line 46... | Line 46... | ||
46 | extern void (*frame_draw)(struct frame *) __attribute__((__stdcall__)); |
46 | extern void (*frame_draw)(frame *) __attribute__((__stdcall__)); |