xosd_get_colour — Get the colour of the data displayed the XOSD window
#include <xosd.h>
int xosd_get_colour( | xosd * | osd, |
int * | red, | |
int * | green, | |
int * | blue) ; |
xosd_get_colour returns the current colour being used to display text and graphics in an XOSD window. The value is passed back as three interger values, one for the red-component of the colour, one for the green-component, and one blue-component.
The XOSD window to query.
A pointer to an interger which will be set to the red-component of the colour. If red is NULL it will not be set.
A pointer to an interger which will be set to the green-component of the colour. If green is NULL it will not be set.
A pointer to an interger which will be set to the blue-component of the colour. If blue is NULL it will not be set.
On success, a zero is returned. On error -1 is returned and xosd_error is set to indicate the reason for the error.