Rev 2693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2693 | Rev 3068 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef __WINLIB_H__ |
1 | #ifndef __WINLIB_H__ |
2 | #define __WINLIB_H__ |
2 | #define __WINLIB_H__ |
Line 3... | Line 3... | ||
3 | 3 | ||
Line -... | Line 4... | ||
- | 4 | #include "control.h" |
|
- | 5 | ||
- | 6 | #define CAPTION_HEIGHT 24 |
|
4 | #include "control.h" |
7 | #define PANEL_HEIGHT 55 |
5 | 8 | ||
6 | typedef struct |
9 | typedef struct |
7 | { |
10 | { |
Line 29... | Line 32... | ||
29 | 32 | ||
30 | typedef struct |
33 | typedef struct |
31 | { |
34 | { |
32 | ctrl_t ctrl; |
35 | ctrl_t ctrl; |
- | 36 | ctx_t ctx; |
|
33 | ctx_t ctx; |
37 | char *text; |
34 | ctrl_t *child_over; |
38 | ctrl_t *child_over; |
35 | button_t *close_btn; |
39 | button_t *close_btn; |
Line 36... | Line 40... | ||
36 | button_t *minimize_btn; |
40 | button_t *minimize_btn; |
Line 41... | Line 45... | ||
41 | { |
45 | { |
42 | ctrl_t ctrl; |
46 | ctrl_t ctrl; |
43 | ctx_t ctx; |
47 | ctx_t ctx; |
44 | rect_t draw; |
48 | rect_t draw; |
45 | ctrl_t *child_over; |
49 | ctrl_t *child_over; |
- | 50 | int layout; |
|
46 | progress_t *prg; |
51 | progress_t *prg; |
- | 52 | level_t *lvl; |
|
- | 53 | slider_t *sld; |
|
47 | button_t *play_btn; |
54 | button_t *play_btn; |
- | 55 | button_t *stop_btn; |
|
48 | }panel_t; |
56 | }panel_t; |
Line 49... | Line 57... | ||
49 | 57 | ||
50 | typedef struct |
58 | typedef struct |
51 | { |
59 | { |
Line 109... | Line 117... | ||
109 | 117 | ||
110 | button_t *create_button(char *caption, int id, int x, int y, |
118 | button_t *create_button(char *caption, int id, int x, int y, |
111 | int w, int h, ctrl_t *parent); |
119 | int w, int h, ctrl_t *parent); |
112 | progress_t *create_progress(char *caption, int id, int x, int y, |
120 | progress_t *create_progress(char *caption, int id, int x, int y, |
113 | int w, int h, ctrl_t *parent); |
- | |
- | 121 | int w, int h, ctrl_t *parent); |
|
- | 122 | level_t *create_level(char *caption, int id, int x, int y, |
|
114 | 123 | int w, int h, ctrl_t *parent); |
|
115 | scroller_t *create_scroller(uint32_t style, int id, int x, int y, |
124 | scroller_t *create_scroller(uint32_t style, int id, int x, int y, |
Line 116... | Line 125... | ||
116 | int w, int h, ctrl_t *parent); |
125 | int w, int h, ctrl_t *parent); |