forked from notsecure/uTox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
list.h
47 lines (39 loc) · 973 Bytes
/
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
/* list: the contact list
*/
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 *sitem;
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_selectaddfriend(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);