-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxosd.h
36 lines (29 loc) · 888 Bytes
/
xosd.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
#ifndef XOSD_H
#define XOSD_H
typedef struct xosd xosd;
typedef enum
{
XOSD_percentage,
XOSD_string,
XOSD_printf,
XOSD_slider
} xosd_command;
typedef enum
{
XOSD_top,
XOSD_bottom
} xosd_pos;
xosd *xosd_init (char *font, char *colour, int timeout,
xosd_pos pos, int offset, int shadow_offset);
int xosd_uninit (xosd *osd);
int xosd_display (xosd *osd, int line, xosd_command command, ...);
int xosd_hide (xosd *osd);
int xosd_show (xosd *osd);
int xosd_set_pos (xosd *osd, xosd_pos pos);
int xosd_set_shadow_offset (xosd *osd, int shadow_offset);
int xosd_set_offset (xosd *osd, int offset);
int xosd_set_timeout (xosd *osd, int timeout); /* set timeout to -1 to never timeout */
int xosd_set_colour (xosd *osd, char *colour);
int xosd_set_font (xosd *osd, char *font);
int xosd_get_colour (xosd *osd, int *red, int *green, int *blue);
#endif