Rev 6887 | Rev 7086 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3107 | leency | 1 | //BOX_LIB - Asper |
5598 | pavelyakov | 2 | #ifndef INCLUDE_BOX_LIB_H |
3 | #define INCLUDE_BOX_LIB_H |
||
4 | |||
5 | #ifndef INCLUDE_KOLIBRI_H |
||
6 | #include "../lib/kolibri.h" |
||
7 | #endif |
||
8 | |||
9 | #ifndef INCLUDE_DLL_H |
||
10 | #include "../lib/dll.h" |
||
11 | #endif |
||
12 | |||
3107 | leency | 13 | dword boxlib = #aEdit_box_lib; |
5503 | leency | 14 | char aEdit_box_lib[]="/sys/lib/box_lib.obj"; |
3107 | leency | 15 | |
16 | dword box_lib_init = #aboxlib_init; |
||
17 | |||
18 | dword edit_box_draw = #aEdit_box_draw; |
||
19 | dword edit_box_key = #aEdit_box_key; |
||
20 | dword edit_box_mouse = #aEdit_box_mouse; |
||
21 | dword version_ed = #aVersion_ed; |
||
22 | |||
23 | dword scrollbar_v_draw = #aScrollbar_v_draw; |
||
24 | dword scrollbar_v_mouse = #aScrollbar_v_mouse; |
||
25 | dword scrollbar_h_draw = #aScrollbar_h_draw; |
||
26 | dword scrollbar_h_mouse = #aScrollbar_h_mouse; |
||
27 | dword version_scrollbar = #aVersion_scrollbar; |
||
28 | |||
3363 | leency | 29 | dword PathShow_prepare = #aPathShow_prepare; |
30 | dword PathShow_draw = #aPathShow_draw; |
||
4674 | leency | 31 | |
32 | dword progressbar_draw = #aProgressbar_draw; |
||
33 | dword progressbar_progress = #aProgressbar_progress; |
||
34 | |||
5444 | leency | 35 | dword frame_draw = #aFrame_draw; |
36 | |||
3839 | Asper | 37 | $DD 2 dup 0 |
3363 | leency | 38 | |
5520 | leency | 39 | char aEdit_box_draw [] = "edit_box"; |
5444 | leency | 40 | char aEdit_box_key [] = "edit_box_key"; |
41 | char aEdit_box_mouse[] = "edit_box_mouse"; |
||
42 | char aVersion_ed [] = "version_ed"; |
||
3107 | leency | 43 | |
5444 | leency | 44 | char aboxlib_init[] = "lib_init"; |
45 | char aScrollbar_v_draw [] = "scrollbar_v_draw"; |
||
46 | char aScrollbar_v_mouse[] = "scrollbar_v_mouse"; |
||
47 | char aScrollbar_h_draw [] = "scrollbar_h_draw"; |
||
48 | char aScrollbar_h_mouse[] = "scrollbar_h_mouse"; |
||
49 | char aVersion_scrollbar[] = "version_scrollbar"; |
||
3107 | leency | 50 | |
5444 | leency | 51 | char aPathShow_prepare [] = "PathShow_prepare"; |
52 | char aPathShow_draw [] = "PathShow_draw"; |
||
3107 | leency | 53 | |
5444 | leency | 54 | char aProgressbar_draw [] = "progressbar_draw"; |
55 | char aProgressbar_progress[] = "progressbar_progress"; |
||
3363 | leency | 56 | |
5444 | leency | 57 | char aFrame_draw[] = "frame_draw"; |
4674 | leency | 58 | |
5444 | leency | 59 | |
3363 | leency | 60 | struct PathShow_data |
61 | { |
||
5444 | leency | 62 | dword type; |
63 | word start_y, |
||
64 | start_x, |
||
65 | font_size_x, // 6 - for font 0, 8 - for font 1 |
||
66 | area_size_x; |
||
67 | dword font_number, // 0 - monospace, 1 - variable |
||
68 | background_flag, |
||
69 | font_color, |
||
70 | background_color, |
||
71 | text_pointer, |
||
72 | work_area_pointer, |
||
73 | temp_text_length; |
||
3363 | leency | 74 | }; |
75 | /* |
||
76 | char temp[128]; |
||
77 | PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0}; |
||
78 | PathShow_prepare stdcall(#PathShow); |
||
79 | PathShow_draw stdcall(#PathShow); |
||
80 | */ |
||
81 | |||
3107 | leency | 82 | struct edit_box{ |
5685 | leency | 83 | dword width, |
84 | left, |
||
85 | top, |
||
86 | color, |
||
87 | shift_color, |
||
88 | focus_border_color, |
||
89 | blur_border_color, |
||
90 | text_color, |
||
91 | max, |
||
92 | text, |
||
93 | mouse_variable, |
||
94 | flags, |
||
95 | size, |
||
96 | pos, |
||
97 | offset, |
||
98 | cl_curs_x, |
||
99 | cl_curs_y, |
||
100 | shift, |
||
6678 | leency | 101 | shift_old, |
102 | ed_height, |
||
103 | ed_char_width; |
||
3107 | leency | 104 | }; |
105 | |||
106 | struct scroll_bar |
||
107 | { |
||
5444 | leency | 108 | word size_x, |
109 | start_x, |
||
110 | size_y, |
||
111 | start_y; |
||
112 | dword btn_height, |
||
113 | type, |
||
114 | max_area, |
||
115 | cur_area, |
||
116 | position, |
||
117 | bckg_col, |
||
118 | frnt_col, |
||
119 | line_col, |
||
120 | redraw; |
||
121 | word delta, |
||
122 | delta2, |
||
123 | r_size_x, |
||
124 | r_start_x, |
||
125 | r_size_y, |
||
126 | r_start_y; |
||
127 | dword m_pos, |
||
128 | m_pos_2, |
||
129 | m_keys, |
||
130 | run_size, |
||
131 | position2, |
||
132 | work_size, |
||
133 | all_redraw, |
||
134 | ar_offset; |
||
4674 | leency | 135 | }; |
136 | |||
5444 | leency | 137 | struct progress_bar |
4674 | leency | 138 | { |
5444 | leency | 139 | dword |
140 | value, |
||
141 | left, |
||
142 | top, |
||
143 | width, |
||
144 | height, |
||
145 | style, |
||
146 | min, |
||
147 | max, |
||
148 | back_color, |
||
149 | progress_color, |
||
150 | frame_color; |
||
151 | }; |
||
152 | |||
153 | struct frame |
||
154 | { |
||
155 | dword type; |
||
156 | word size_x; |
||
157 | word start_x; |
||
158 | word size_y; |
||
159 | word start_y; |
||
160 | dword ext_col; |
||
161 | dword int_col; |
||
162 | dword draw_text_flag; // 0-not,1-yes |
||
163 | dword text_pointer; |
||
164 | dword text_position; // 0-up,1-bottom |
||
165 | dword font_number; // 0-monospace,1-variable |
||
166 | dword font_size_y; |
||
167 | dword font_color; |
||
168 | dword font_backgr_color; |
||
5598 | pavelyakov | 169 | }; |
170 | |||
171 | #endif |