Subversion Repositories Kolibri OS

Rev

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