xosd_set_align — Change the horizontal position of the XOSD window
#include <xosd.h>
int xosd_set_align( | xosd * | osd, |
xosd_align | align) ; |
xosd_set_align changes the horizontal alignment of the XOSD window. There are three possible horizontal positions for the XOSD window, corresponding to the top, middle, or bottom of the display. By default the XOSD window is aligned at the left of the display.
The XOSD window to change.
The alignment of the display. There are three possible values for align
XOSD_left for the left (the default),
XOSD_center for the center, and
XOSD_right for the right of the display.
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.
A string describing the error, if one occurred.
The possible horizontal alignment of the display, defined as an enumerated type. There are three values defined:
XOSD_left,
XOSD_center, and
XOSD_right.