Subversion Repositories Kolibri OS

Rev

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

Rev 5702 Rev 5709
Line 7... Line 7...
7
#include "../lib/kolibri.h"
7
#include "../lib/kolibri.h"
8
#endif
8
#endif
Line 9... Line 9...
9
 
9
 
10
struct llist
10
struct llist
11
{
11
{
12
	int x, y, w, h, min_h, line_h, text_y;
-
 
13
	int column_max;
12
	int x, y, w, h, line_h, char_w, char_h, text_y;
14
	int count, visible, first, current; //visible = row_max
13
	int count, visible, first, current, column_max; //visible = row_max
15
	int active;
14
	int active;
16
	void ClearList();
15
	void ClearList();
17
	int MouseOver(int xx, yy);
16
	int MouseOver(int xx, yy);
18
	int ProcessMouse(int xx, yy);
17
	int ProcessMouse(int xx, yy);
Line 45... Line 44...
45
{
44
{
46
	count = visible = first = current = 0;
45
	count = visible = first = current = 0;
47
}
46
}
Line 48... Line 47...
48
 
47
 
49
 
48
 
50
void llist::SetSizes(int xx, yy, ww, hh, min_hh, line_hh)
49
void llist::SetSizes(int xx, yy, ww, hh, line_hh)
51
{
50
{
52
	x = xx;
51
	x = xx;
53
	y = yy;
52
	y = yy;
54
	w = ww;
-
 
55
	h = hh;
53
	w = ww;
56
	min_h = min_hh;
54
	h = hh;
57
	line_h = line_hh;
55
	line_h = line_hh;
58
	text_y = line_h / 2 - 4;
-
 
59
	visible = h / line_h;
56
	text_y = line_h / 2 - 4;
60
	column_max = w / 6;
57
	visible = h / line_h;
Line 61... Line 58...
61
	//if (visible > count) visible=count;
58
	//if (visible > count) visible=count;