kolibrios/programs/cmm/browser/TWB/tag_list.h
Kirill Lipatov (Leency) 67d3c20b4e WebView images support (temporary is off, press F11 to enable)
git-svn-id: svn://kolibrios.org@8330 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-05 23:22:38 +00:00

40 lines
554 B
C

enum {DT=1, OL, UL};
struct LIST
{
int level;
int ordered[5];
int counter[5];
void reset();
void upd_level();
int inc_counter();
int get_order_type();
};
void LIST::reset()
{
level = 0;
}
void LIST::upd_level(int direction, type)
{
if (direction == 1) && (level<5) {
level++;
counter[level]=0;
ordered[level]=type;
}
if (direction == 0) && (level>0) {
level--;
}
}
int LIST::inc_counter()
{
counter[level]++;
return counter[level];
}
int LIST::get_order_type()
{
return ordered[level];
}