Subversion Repositories Kolibri OS

Rev

Rev 5520 | Rev 5611 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5520 Rev 5598
1
//BOX_LIB - Asper
1
//BOX_LIB - Asper
-
 
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
 
2
dword boxlib = #aEdit_box_lib;
13
dword boxlib = #aEdit_box_lib;
3
char aEdit_box_lib[]="/sys/lib/box_lib.obj";
14
char aEdit_box_lib[]="/sys/lib/box_lib.obj";
4
 
15
 
5
dword box_lib_init   = #aboxlib_init;
16
dword box_lib_init   = #aboxlib_init;
6
 
17
 
7
dword edit_box_draw  = #aEdit_box_draw;
18
dword edit_box_draw  = #aEdit_box_draw;
8
dword edit_box_key   = #aEdit_box_key;
19
dword edit_box_key   = #aEdit_box_key;
9
dword edit_box_mouse = #aEdit_box_mouse;
20
dword edit_box_mouse = #aEdit_box_mouse;
10
dword version_ed     = #aVersion_ed;
21
dword version_ed     = #aVersion_ed;
11
 
22
 
12
dword scrollbar_v_draw  = #aScrollbar_v_draw;
23
dword scrollbar_v_draw  = #aScrollbar_v_draw;
13
dword scrollbar_v_mouse = #aScrollbar_v_mouse;
24
dword scrollbar_v_mouse = #aScrollbar_v_mouse;
14
dword scrollbar_h_draw  = #aScrollbar_h_draw;
25
dword scrollbar_h_draw  = #aScrollbar_h_draw;
15
dword scrollbar_h_mouse = #aScrollbar_h_mouse;
26
dword scrollbar_h_mouse = #aScrollbar_h_mouse;
16
dword version_scrollbar = #aVersion_scrollbar;
27
dword version_scrollbar = #aVersion_scrollbar;
17
 
28
 
18
dword PathShow_prepare = #aPathShow_prepare;
29
dword PathShow_prepare = #aPathShow_prepare;
19
dword PathShow_draw    = #aPathShow_draw;
30
dword PathShow_draw    = #aPathShow_draw;
20
 
31
 
21
dword progressbar_draw = #aProgressbar_draw;
32
dword progressbar_draw = #aProgressbar_draw;
22
dword progressbar_progress = #aProgressbar_progress;
33
dword progressbar_progress = #aProgressbar_progress;
23
 
34
 
24
dword check_box_draw = #aCheck_box_draw;
35
dword check_box_draw = #aCheck_box_draw;
25
dword check_box_mouse = #aCheck_box_mouse;
36
dword check_box_mouse = #aCheck_box_mouse;
26
dword version_ch = #aVersion_ch;
37
dword version_ch = #aVersion_ch;
27
 
38
 
28
dword frame_draw = #aFrame_draw;
39
dword frame_draw = #aFrame_draw;
29
 
40
 
30
$DD 2 dup 0
41
$DD 2 dup 0
31
 
42
 
32
char aEdit_box_draw []    = "edit_box";
43
char aEdit_box_draw []    = "edit_box";
33
char aEdit_box_key  []    = "edit_box_key";
44
char aEdit_box_key  []    = "edit_box_key";
34
char aEdit_box_mouse[]    = "edit_box_mouse";
45
char aEdit_box_mouse[]    = "edit_box_mouse";
35
char aVersion_ed    []    = "version_ed";
46
char aVersion_ed    []    = "version_ed";
36
 
47
 
37
char aboxlib_init[]        = "lib_init";
48
char aboxlib_init[]        = "lib_init";
38
char aScrollbar_v_draw [] = "scrollbar_v_draw";
49
char aScrollbar_v_draw [] = "scrollbar_v_draw";
39
char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
50
char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
40
char aScrollbar_h_draw [] = "scrollbar_h_draw";
51
char aScrollbar_h_draw [] = "scrollbar_h_draw";
41
char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
52
char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
42
char aVersion_scrollbar[] = "version_scrollbar";
53
char aVersion_scrollbar[] = "version_scrollbar";
43
 
54
 
44
char aCheck_box_draw   [] = "check_box_draw2";
55
char aCheck_box_draw   [] = "check_box_draw2";
45
char aCheck_box_mouse  [] = "check_box_mouse2";
56
char aCheck_box_mouse  [] = "check_box_mouse2";
46
char aVersion_ch       [] = "version_ch2";
57
char aVersion_ch       [] = "version_ch2";
47
 
58
 
48
char aOption_box_draw  [] = "option_box_draw";
59
char aOption_box_draw  [] = "option_box_draw";
49
char aOption_box_mouse [] = "option_box_mouse";
60
char aOption_box_mouse [] = "option_box_mouse";
50
char aVersion_op       [] = "version_op" ;
61
char aVersion_op       [] = "version_op" ;
51
 
62
 
52
char aPathShow_prepare [] = "PathShow_prepare";
63
char aPathShow_prepare [] = "PathShow_prepare";
53
char aPathShow_draw    [] = "PathShow_draw";
64
char aPathShow_draw    [] = "PathShow_draw";
54
 
65
 
55
char aProgressbar_draw  [] = "progressbar_draw";
66
char aProgressbar_draw  [] = "progressbar_draw";
56
char aProgressbar_progress[] = "progressbar_progress";
67
char aProgressbar_progress[] = "progressbar_progress";
57
 
68
 
58
char aFrame_draw[] = "frame_draw";
69
char aFrame_draw[] = "frame_draw";
59
 
70
 
60
 
71
 
61
struct PathShow_data
72
struct PathShow_data
62
{
73
{
63
dword type;
74
dword type;
64
word start_y,
75
word start_y,
65
	start_x,
76
	start_x,
66
	font_size_x,    // 6 - for font 0, 8 - for font 1
77
	font_size_x,    // 6 - for font 0, 8 - for font 1
67
	area_size_x;
78
	area_size_x;
68
dword font_number,  // 0 - monospace, 1 - variable
79
dword font_number,  // 0 - monospace, 1 - variable
69
	background_flag,
80
	background_flag,
70
	font_color,
81
	font_color,
71
	background_color,
82
	background_color,
72
	text_pointer,
83
	text_pointer,
73
	work_area_pointer,
84
	work_area_pointer,
74
	temp_text_length;
85
	temp_text_length;
75
};
86
};
76
/*
87
/*
77
char temp[128];
88
char temp[128];
78
PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
89
PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
79
PathShow_prepare stdcall(#PathShow);
90
PathShow_prepare stdcall(#PathShow);
80
PathShow_draw stdcall(#PathShow);
91
PathShow_draw stdcall(#PathShow);
81
*/
92
*/
82
 
93
 
83
 
94
 
84
struct edit_box{
95
struct edit_box{
85
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
96
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
86
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
97
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
87
};
98
};
88
 
99
 
89
struct checkbox2
100
struct checkbox2
90
{
101
{
91
  dword
102
  dword
92
	left_s,
103
	left_s,
93
	top_s,
104
	top_s,
94
	ch_text_margin,
105
	ch_text_margin,
95
	color,
106
	color,
96
	border_color,
107
	border_color,
97
	text_color,
108
	text_color,
98
	text,
109
	text,
99
	flags,
110
	flags,
100
	size_of_str;
111
	size_of_str;
101
};
112
};
102
 
113
 
103
//flags for checkbox2
114
//flags for checkbox2
104
#define CH_FLAG_EN 10b      
115
#define CH_FLAG_EN 10b      
105
#define CH_FLAG_TOP 0x0     
116
#define CH_FLAG_TOP 0x0     
106
#define CH_FLAG_MIDDLE 100b 
117
#define CH_FLAG_MIDDLE 100b 
107
#define CH_FLAG_BOTTOM 1000b 
118
#define CH_FLAG_BOTTOM 1000b 
108
 
119
 
109
struct scroll_bar
120
struct scroll_bar
110
{
121
{
111
	word size_x,
122
	word size_x,
112
	start_x,
123
	start_x,
113
	size_y,
124
	size_y,
114
	start_y;
125
	start_y;
115
	dword btn_height,
126
	dword btn_height,
116
	type,
127
	type,
117
	max_area,
128
	max_area,
118
	cur_area,
129
	cur_area,
119
	position,
130
	position,
120
	bckg_col,
131
	bckg_col,
121
	frnt_col,
132
	frnt_col,
122
	line_col,
133
	line_col,
123
	redraw;
134
	redraw;
124
	word delta,
135
	word delta,
125
	delta2,
136
	delta2,
126
	r_size_x,
137
	r_size_x,
127
	r_start_x,
138
	r_start_x,
128
	r_size_y,
139
	r_size_y,
129
	r_start_y;
140
	r_start_y;
130
	dword m_pos,
141
	dword m_pos,
131
	m_pos_2,
142
	m_pos_2,
132
	m_keys,
143
	m_keys,
133
	run_size,
144
	run_size,
134
	position2,
145
	position2,
135
	work_size,
146
	work_size,
136
	all_redraw,
147
	all_redraw,
137
	ar_offset;
148
	ar_offset;
138
};
149
};
139
 
150
 
140
struct progress_bar
151
struct progress_bar
141
{
152
{
142
  dword
153
  dword
143
	value,
154
	value,
144
	left,
155
	left,
145
	top,
156
	top,
146
	width,
157
	width,
147
	height,
158
	height,
148
	style,
159
	style,
149
	min,
160
	min,
150
	max,
161
	max,
151
	back_color,
162
	back_color,
152
	progress_color,
163
	progress_color,
153
	frame_color;
164
	frame_color;
154
};
165
};
155
 
166
 
156
struct frame
167
struct frame
157
{
168
{
158
	dword type;
169
	dword type;
159
	word size_x;                  
170
	word size_x;                  
160
	word start_x;                 
171
	word start_x;                 
161
	word size_y;                  
172
	word size_y;                  
162
	word start_y;                
173
	word start_y;                
163
	dword ext_col;            
174
	dword ext_col;            
164
	dword int_col;            
175
	dword int_col;            
165
	dword draw_text_flag;  // 0-not,1-yes
176
	dword draw_text_flag;  // 0-not,1-yes
166
	dword text_pointer;          
177
	dword text_pointer;          
167
	dword text_position;   //  0-up,1-bottom
178
	dword text_position;   //  0-up,1-bottom
168
	dword font_number;     //  0-monospace,1-variable
179
	dword font_number;     //  0-monospace,1-variable
169
	dword font_size_y;           
180
	dword font_size_y;           
170
	dword font_color;            
181
	dword font_color;            
171
	dword font_backgr_color;
182
	dword font_backgr_color;
172
};
183
};     
173
184
 
-
 
185
#endif
-
 
186
174
187