Subversion Repositories Kolibri OS

Rev

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

Rev 7225 Rev 7227
Line 344... Line 344...
344
{
344
{
345
	n+=_addition;
345
	n+=_addition;
346
	return n;
346
	return n;
347
}
347
}
Line -... Line 348...
-
 
348
 
-
 
349
//block with hover
-
 
350
struct block {
-
 
351
	int x,y,w,h;
-
 
352
	bool hovered();
-
 
353
	void set_size();
-
 
354
};
-
 
355
 
-
 
356
:bool block::hovered() {
-
 
357
	if ((mouse.x>x) && (mouse.y>y) 
-
 
358
	&& (mouse.y
-
 
359
		return true;
-
 
360
	return false;
-
 
361
}
-
 
362
 
-
 
363
:void block::set_size(dword _x, _y, _w, _h)
-
 
364
{
-
 
365
	x=_x; 
-
 
366
	y=_y;
-
 
367
	w=_w;
-
 
368
	h=_h;
-
 
369
}
Line 348... Line 370...
348
 
370
 
349
 
371