1XOSD_SET_BAR_LENGTH(3xosd) XOSD_SET_BAR_LENGTH(3xosd)
2
3
4
6 xosd_set_bar_length - Change the length of the percentage bar or slider
7
9 #include <xosd.h>
10
11
12 int xosd_set_bar_length (xosd *osd, int displayPercentage);
13
14
16 xosd_set_bar_length changes the percentage of the display used by a
17 slider or percentage bar. Normally the XOSD choses a sensible length
18 for the bar, but you may wish to change the default behavior if there
19 are only a small number of possible values to be displayed.
20
21
23 osd The XOSD window to alter.
24
25
26 displayPercentage
27 The percentage of the display to be used up by the slider or
28 percentage bar, as an interger between 0 and 100. Setting dis‐
29 playPercentage to -1 reverts to the default behaviour.
30
31
33 On success, a zero is returned. On error, -1 is returned and xosd_error
34 is set to indicate the reason for the error.
35
36
38 char *xosd_error
39 A string describing the error, if one occurred.
40
41
43 There are no known bugs with xosd_set_bar_length. Bug reports can be
44 sent to <xosd@ignavus.net>.
45
46
48 The XOSD library was originally written by André Renaud, and is cur‐
49 rently maintained by Tim Wright. This document was written by Michael
50 JasonSmith.
51
52
54 xosd_create(3xosd), xosd_display(3xosd).
55
56
57
58
59 XOSD_SET_BAR_LENGTH(3xosd)