xosd_set_bar_length(3)

xosd_set_bar_length3

Change the length of the percentage bar or slider

Usage

#include <xosd.h>

int xosd_set_bar_length (xosd *osd, int displayPercentage);

Overview

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.

Arguments

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.

Return value

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

Environment

char *xosd_error

A string describing the error, if one occurred.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–6.0
  2. 7–13
  3. Arch

Bugs

There are no known bugs with xosd_set_bar_length. Bug reports can be sent to <[email protected]>.

Authors

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

From xosd 2.2.14-12 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.