Rev 6589 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6589 | Rev 8581 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | uint32_t font_size_y; |
35 | uint32_t font_size_y; |
36 | color_t font_color; |
36 | color_t font_color; |
37 | color_t font_bg_color; |
37 | color_t font_bg_color; |
38 | }frame; |
38 | }frame; |
Line 39... | Line 39... | ||
39 | 39 | ||
40 | inline frame* kolibri_frame(frame* f, uint32_t x_w, uint32_t y_h, color_t ext_col, color_t int_col, char *text, enum fr_text_position_t text_position, |
40 | static inline frame* kolibri_frame(frame* f, uint32_t x_w, uint32_t y_h, color_t ext_col, color_t int_col, char *text, enum fr_text_position_t text_position, |
41 | color_t font_color, color_t font_bgcolor, enum fr_flags_t flags) |
41 | color_t font_color, color_t font_bgcolor, enum fr_flags_t flags) |
42 | { |
42 | { |
43 | f->type = 0; |
43 | f->type = 0; |
44 | f->x_w = x_w; |
44 | f->x_w = x_w; |
Line 56... | Line 56... | ||
56 | 56 | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | return f; |
58 | return f; |
59 | } |
59 | } |
60 | 60 | ||
61 | inline frame* kolibri_new_frame(uint32_t x_w, uint32_t y_h, color_t ext_col, color_t int_col, char *text, enum fr_text_position_t text_position, |
61 | static inline frame* kolibri_new_frame(uint32_t x_w, uint32_t y_h, color_t ext_col, color_t int_col, char *text, enum fr_text_position_t text_position, |
62 | color_t font_color, color_t font_bgcolor, enum fr_flags_t flags) |
62 | color_t font_color, color_t font_bgcolor, enum fr_flags_t flags) |
63 | { |
63 | { |
Line 64... | Line 64... | ||
64 | frame *new_frame = (frame *)malloc(sizeof(frame)); |
64 | frame *new_frame = (frame *)malloc(sizeof(frame)); |
65 | return kolibri_frame(new_frame, x_w, y_h, ext_col, int_col, text, text_position, font_color, font_bgcolor, flags); |
65 | return kolibri_frame(new_frame, x_w, y_h, ext_col, int_col, text, text_position, font_color, font_bgcolor, flags); |
66 | } |
66 | } |
67 | 67 | ||
Line 68... | Line 68... | ||
68 | inline frame* kolibri_frame_def(frame* f, uint32_t x_w, uint32_t y_h, char *text) |
68 | static inline frame* kolibri_frame_def(frame* f, uint32_t x_w, uint32_t y_h, char *text) |
69 | { |
69 | { |
70 | return kolibri_frame(f, x_w, y_h, 0x00FCFCFC, 0x00DCDCDC, text, FR_TOP, kolibri_color_table.color_work_text, kolibri_color_table.color_work_area, 0); |
70 | return kolibri_frame(f, x_w, y_h, 0x00FCFCFC, 0x00DCDCDC, text, FR_TOP, kolibri_color_table.color_work_text, kolibri_color_table.color_work_area, 0); |
71 | } |
71 | } |
Line 72... | Line 72... | ||
72 | 72 | ||
73 | inline frame* kolibri_new_frame_def(uint32_t x_w, uint32_t y_h, char *text) |
73 | static inline frame* kolibri_new_frame_def(uint32_t x_w, uint32_t y_h, char *text) |
74 | { |
74 | { |
75 | return kolibri_new_frame(x_w, y_h, 0x00FCFCFC, 0x00DCDCDC, text, FR_TOP, kolibri_color_table.color_work_text, kolibri_color_table.color_work_area, 0); |
75 | return kolibri_new_frame(x_w, y_h, 0x00FCFCFC, 0x00DCDCDC, text, FR_TOP, kolibri_color_table.color_work_text, kolibri_color_table.color_work_area, 0); |