forked from notsecure/uTox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropdown.h
More file actions
25 lines (21 loc) · 696 Bytes
/
Copy pathdropdown.h
File metadata and controls
25 lines (21 loc) · 696 Bytes
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
typedef struct
{
uint8_t *name;
void *handle;
}DROP_ELEMENT;
struct dropdown {
PANEL panel;
_Bool mouseover, open;
uint16_t dropcount, selected, over;
DROP_ELEMENT *drop;
void (*onselect)(void*);
};
void dropdown_drawactive(void);
void dropdown_draw(DROPDOWN *b, int x, int y, int width, int height);
_Bool dropdown_mmove(DROPDOWN *b, int x, int y, int width, int height, int mx, int my, int dx, int dy);
_Bool dropdown_mdown(DROPDOWN *b);
_Bool dropdown_mright(DROPDOWN *b);
_Bool dropdown_mwheel(DROPDOWN *b, int height, double d);
_Bool dropdown_mup(DROPDOWN *b);
_Bool dropdown_mleave(DROPDOWN *b);
void dropdown_add(DROPDOWN *b, uint8_t *name, void *handle);