Subversion Repositories Kolibri OS

Rev

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

Rev 3992 Rev 4005
Line 1... Line 1...
1
//#include "strings.h"
1
//#include "strings.h"
Line 2... Line 2...
2
 
2
 
3
void DrawRectangle(dword x,y,w,h,color1)
3
:void DrawRectangle(dword x,y,w,h,color1)
4
{
4
{
5
	if (w<=0) || (h<=0) return;
5
	if (w<=0) || (h<=0) return;
6
	DrawBar(x,y,w,1,color1);
6
	DrawBar(x,y,w,1,color1);
7
	DrawBar(x,y+h,w,1,color1);
7
	DrawBar(x,y+h,w,1,color1);
8
	DrawBar(x,y,1,h,color1);
8
	DrawBar(x,y,1,h,color1);
9
	DrawBar(x+w,y,1,h+1,color1);
9
	DrawBar(x+w,y,1,h+1,color1);
Line 10... Line 10...
10
}
10
}
11
 
11
 
12
void DrawRectangle3D(dword x,y,w,h,color1,color2)
12
:void DrawRectangle3D(dword x,y,w,h,color1,color2)
13
{
13
{
14
	if (w<=0) || (h<=0) return;
14
	if (w<=0) || (h<=0) return;
15
	DrawBar(x,y,w+1,1,color1);
15
	DrawBar(x,y,w+1,1,color1);
16
	DrawBar(x,y+1,1,h-1,color1);
16
	DrawBar(x,y+1,1,h-1,color1);
17
	DrawBar(x+w,y+1,1,h,color2);
17
	DrawBar(x+w,y+1,1,h,color2);
Line 18... Line 18...
18
	DrawBar(x,y+h,w,1,color2);
18
	DrawBar(x,y+h,w,1,color2);
19
}
19
}
20
 
20
 
21
void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text)
21
:void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text)
22
{
22
{