-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathegi_list.h
51 lines (40 loc) · 1.65 KB
/
egi_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*------------------------------------------------------------------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
Midas Zhou
-------------------------------------------------------------------*/
#ifndef __EGI_LIST_H__
#define __EGI_LIST_H__
#include "egi.h"
#include "egi_symbol.h"
#ifdef __cplusplus
extern "C" {
#endif
#define LIST_ITEM_MAXLINES 10 /* MAX number of txt line for each list item */
#define LIST_DEFAULT_BKCOLOR WEGI_COLOR_GRAY /*default list item bkcolor */
/* functions for list */
EGI_EBOX *egi_listbox_new (
int x0, int y0, /* left top point */
int inum, /* item number of a list */
int nwin, /* number of items in displaying window */
int width, /* H/W for each list item ebox, W/H of the hosting ebox depends on it */
int height,
int frame, /* -1 no frame for ebox, 0 simple .. */
int nl, /* number of txt lines for each txt ebox */
int llen, /* in byte, length for each txt line */
EGI_SYMPAGE *font, /* txt font */
int txtoffx, /* offset of txt from the ebox, all the same */
int txtoffy,
int iconoffx, /* offset of icon from the ebox, all the same */
int iconoffy
);
void egi_free_data_list(EGI_DATA_LIST *data_list);
int egi_listbox_activate(EGI_EBOX *ebox);
int egi_listbox_refresh(EGI_EBOX *ebox);
int egi_listbox_updateitem(EGI_EBOX *ebox, int n, int prmcolor, const char **txt);
// static int egi_itembox_decorate(EGI_EBOX *ebox);
#ifdef __cplusplus
}
#endif
#endif