GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XOSD_SET_BAR_LENGTH(3xosd) XOSD_SET_BAR_LENGTH(3xosd)

xosd_set_bar_length - Change the length of the percentage bar or slider

#include <xosd.h>

int xosd_set_bar_length (xosd *osd, int displayPercentage);

xosd_set_bar_length changes the percentage of the display used by a slider or percentage bar. Normally the XOSD choses a sensible length for the bar, but you may wish to change the default behavior if there are only a small number of possible values to be displayed.

osd
The XOSD window to alter.

displayPercentage
The percentage of the display to be used up by the slider or percentage bar, as an interger between 0 and 100. Setting displayPercentage to -1 reverts to the default behaviour.

On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.

char *xosd_error
A string describing the error, if one occurred.

There are no known bugs with xosd_set_bar_length. Bug reports can be sent to <xosd@ignavus.net>.

The XOSD library was originally written by André Renaud, and is currently maintained by Tim Wright. This document was written by Michael JasonSmith.

xosd_create(3xosd), xosd_display(3xosd).


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.