diff options
Diffstat (limited to 'xosd_test.c')
-rw-r--r-- | xosd_test.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/xosd_test.c b/xosd_test.c new file mode 100644 index 0000000..4ed5c1f --- /dev/null +++ b/xosd_test.c @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <stdlib.h> +#include <xosd.h> + +int main(void) +{ + xosd *osd = xosd_create(1); + + xosd_set_font(osd, "fixed"); + xosd_set_colour(osd, "LawnGreen"); + xosd_set_timeout(osd, 3); + xosd_set_shadow_offset(osd, 1); + + xosd_display(osd, 0, XOSD_string, "Example XOSD output"); + + xosd_wait_until_no_display(osd); + + xosd_destroy(osd); + + return EXIT_SUCCESS; +} + |