forked from notsecure/uTox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
list.h
51 lines (42 loc) · 1.14 KB
/
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
/* list: the contact list
*/
/* non-exhaustive list of panels we to select from, it's probably better to replace this but I don't know with what. */
enum
{
ITEM_NONE,
ITEM_ADD,
ITEM_SETTINGS,
ITEM_TRANSFER,
ITEM_FRIEND,
ITEM_GROUP,
ITEM_FRIEND_ADD,
};
typedef struct
{
uint8_t item;
char namestr[15];
void *data;
}ITEM;
extern ITEM *selected_item;
ITEM *ritem;
void list_start(void);
void list_addfriend(FRIEND *f);
void list_addfriend2(FRIEND *f, FRIENDREQ *req);
void list_addgroup(GROUPCHAT *g);
void list_addfriendreq(FRIENDREQ *f);
void list_deletesitem(void);
void list_deleteritem(void);
void list_selectchat(int index);
void list_selectaddfriend(void);
void list_reselect_current(void);
void list_selectsettings(void);
void list_selectswap(void);
void list_scale(void);
void list_draw(void *n, int x, int y, int width, int height);
void list_freeall(void);
_Bool list_mmove(void *n, int x, int y, int width, int height, int mx, int my, int dx, int dy);
_Bool list_mdown(void *n);
_Bool list_mright(void *n);
_Bool list_mwheel(void *n, int height, double d);
_Bool list_mup(void *n);
_Bool list_mleave(void *n);