Subversion Repositories Kolibri OS

Rev

Rev 1768 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1768 Rev 2056
Line 16... Line 16...
16
#define BT_DEL		0x80000000
16
#define BT_DEL		0x80000000
17
#define BT_HIDE	0x40000000
17
#define BT_HIDE	0x40000000
18
#define BT_NOFRAME	0x20000000
18
#define BT_NOFRAME	0x20000000
Line -... Line 19...
-
 
19
 
-
 
20
 
-
 
21
struct proc_info{
-
 
22
	dword	use_cpu;
-
 
23
	word	pos_in_stack,num_slot,rezerv1;
-
 
24
	char	name[11];
-
 
25
	char	rezerv2;
-
 
26
	dword	adress,use_memory,ID,left,top,width,height;
-
 
27
	word	status_slot,rezerv3;
-
 
28
	dword	work_left,work_top,work_width,work_height;
-
 
29
	char	status_window;
-
 
30
	void	GetInfo(dword ECX);
-
 
31
	byte    reserved[1024-71];
-
 
32
#define SelfInfo -1
-
 
33
};
-
 
34
 
-
 
35
void proc_info::GetInfo(dword ECX)
-
 
36
{
-
 
37
	EAX = 9;
-
 
38
	EBX = #use_cpu;
-
 
39
	$int  0x40
19
 
40
}
20
 
41
 
21
struct system_colors{
42
struct system_colors{
22
	dword frame,grab,grab_button,grab_button_text,grab_text,work,work_button,work_button_text,work_text,work_graph;
43
	dword frame,grab,grab_button,grab_button_text,grab_text,work,work_button,work_button_text,work_text,work_graph;
23
	void get();
44
	void get();
Line 59... Line 80...
59
	EAX = 48;
80
	EAX = 48;
60
	EBX = 4;
81
	EBX = 4;
61
	$int 0x40
82
	$int 0x40
62
}
83
}
Line -... Line 84...
-
 
84
 
-
 
85
 
-
 
86
void DefineButton(dword x,y,w,h,EDX,ESI)
-
 
87
{
-
 
88
 	EAX = 8;
-
 
89
	EBX = x<<16+w;
-
 
90
	ECX = y<<16+h;
-
 
91
 	$int 0x40
-
 
92
}
63
 
93
 
64
inline fastcall void DeleteButton(dword EDX)
94
inline fastcall void DeleteButton(dword EDX)
65
{
95
{
66
	EAX = 8;
96
	EAX = 8;
67
	EDX += BT_DEL;
97
	EDX += BT_DEL;
68
	$int 0x40;
98
	$int 0x40;
Line -... Line 99...
-
 
99
}
69
}
100
 
70
 
101
 
71
 
102
 
72
inline fastcall void WindowRedrawStatus(dword EBX){
103
inline fastcall void WindowRedrawStatus(dword EBX){
Line 73... Line 104...
73
	EAX = 12;
104
	EAX = 12;
74
	$int 0x40
105
	$int 0x40
-
 
106
}
75
}
107
 
76
 
108
 
77
 
109
void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword mainAreaColour,byte headerType,dword headerColour,EDI)
78
void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword mainAreaColour,byte headerType,dword headerColour,EDI)
110
{
79
{
111
	WindowRedrawStatus(1);
80
 	EAX = 0;
112
 	EAX = 0;
-
 
113
	EBX = x << 16 + sizeX;
81
	EBX = x << 16 + sizeX;
114
	ECX = y << 16 + sizeY;
Line 82... Line -...
82
	ECX = y << 16 + sizeY;
-
 
83
	EDX = mainAreaType << 24 | mainAreaColour;
-
 
84
	ESI = headerType << 24 | headerColour;
-
 
85
	$int 0x40
-
 
86
}
-
 
87
 
-
 
88
void DefineButton(dword x,y,w,h,EDX,ESI)
-
 
Line 89... Line 115...
89
{
115
	EDX = mainAreaType << 24 | mainAreaColour;
90
 	EAX = 8;
116
	ESI = headerType << 24 | headerColour;
91
	EBX = x<<16+w;
117
	$int 0x40
92
	ECX = y<<16+h;
118
	WindowRedrawStatus(2);