Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4076 → Rev 4077

/programs/cmm/lib/list_box.h
7,6 → 7,8
int current_temp;
void ClearList();
int ProcessKey(dword key);
int MouseOver(int xx, yy);
int ProcessMouse(int xx, yy);
int KeyDown();
int KeyUp();
int KeyHome();
50,6 → 52,26
return 0;
}
 
int llist::MouseOver(int xx, yy)
{
if (xx>x) && (xx<x+w) && (yy>y) && (yy<y+h) return 1;
return 0;
}
 
int llist::ProcessMouse(int xx, yy)
{
if (MouseOver(xx, yy))
{
current_temp = yy - y / line_h + first;
if (current_temp != current)
{
current = current_temp;
return 1;
}
}
return 0;
}
 
int llist::ProcessKey(dword key)
{
switch(key)