Subversion Repositories Kolibri OS

Rev

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

Rev 5709 Rev 5710
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, line_h, text_y;
12
	int x, y, w, h, line_h, char_w, char_h, text_y;
13
	dword font_w, font_h, font_type;
13
	int count, visible, first, current, column_max; //visible = row_max
14
	int count, visible, first, current, column_max; //visible = row_max
14
	int active;
15
	int active;
15
	void ClearList();
16
	void ClearList();
16
	int MouseOver(int xx, yy);
17
	int MouseOver(int xx, yy);
Line 21... Line 22...
21
	int KeyHome();
22
	int KeyHome();
22
	int KeyEnd();
23
	int KeyEnd();
23
	int KeyPgDown();
24
	int KeyPgDown();
24
	int KeyPgUp();
25
	int KeyPgUp();
25
	void CheckDoesValuesOkey();
26
	void CheckDoesValuesOkey();
26
	void SetSizes(int xx, yy, ww, hh, min_hh, line_hh);
27
	void SetSizes(int xx, yy, ww, hh, line_hh);
-
 
28
	void SetFont(dword font_ww, font_hh, font_tt);
27
	int MouseScroll(dword scroll_state);
29
	int MouseScroll(dword scroll_state);
28
	int MouseScrollNoSelection(dword scroll_state);
30
	int MouseScrollNoSelection(dword scroll_state);
29
	void debug_values();
31
	void debug_values();
30
}; 
32
}; 
Line 51... Line 53...
51
	x = xx;
53
	x = xx;
52
	y = yy;
54
	y = yy;
53
	w = ww;
55
	w = ww;
54
	h = hh;
56
	h = hh;
55
	line_h = line_hh;
57
	line_h = line_hh;
56
	text_y = line_h / 2 - 4;
58
	text_y = line_h - font_h / 2;
57
	visible = h / line_h;
59
	visible = h / line_h;
58
	//if (visible > count) visible=count;
60
	//if (visible > count) visible=count;
59
}
61
}
Line -... Line 62...
-
 
62
 
-
 
63
void llist::SetFont(dword font_ww, font_hh, font_tt)
-
 
64
{
-
 
65
	font_w = font_ww;
-
 
66
	font_h = font_hh;
-
 
67
	font_type = font_tt;
-
 
68
}
Line 60... Line 69...
60
 
69
 
61
 
70
 
62
int llist::MouseScroll(dword scroll_state)
71
int llist::MouseScroll(dword scroll_state)
63
{
72
{