-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessages.h
More file actions
44 lines (38 loc) · 1.1 KB
/
messages.h
File metadata and controls
44 lines (38 loc) · 1.1 KB
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
struct messages
{
PANEL panel;
_Bool type, select;
uint16_t urlover, urllen;
uint32_t height, width;
uint32_t iover, over, idown, down;
MSG_DATA *data;
};
typedef struct {
uint16_t flags, height;
uint32_t time;
uint16_t length;
char_t msg[0];
} MESSAGE;
typedef struct {
uint16_t flags, height;
uint32_t time;
//HBITMAP bitmap;
} MSG_IMG;
struct msg_file {
uint16_t flags, height;
uint32_t time;
uint8_t filenumber, status, name_length;
uint64_t size, progress;
uint8_t name[24];
};
void messages_draw(MESSAGES *m, int x, int y, int width, int height);
_Bool messages_mmove(MESSAGES *m, int mx, int my, int dy, int width, int height);
_Bool messages_mdown(MESSAGES *m);
_Bool messages_dclick(MESSAGES *m, _Bool triclick);
_Bool messages_mright(MESSAGES *m);
_Bool messages_mwheel(MESSAGES *m, int height, double d);
_Bool messages_mup(MESSAGES *m);
_Bool messages_mleave(MESSAGES *m);
int messages_selection(MESSAGES *m, void *data, uint32_t len);
void messages_updateheight(MESSAGES *m) ;
void message_add(MESSAGES *m, MESSAGE *msg, MSG_DATA *p);