---
name: "xosd_set_horizontal_offset"
section: "3"
platform: "linux"
package: "xosd"
version: "2.2.14-12"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/xosd_set_horizontal_offset"
---

# xosd\_set\_horizontal\_offset(3)

Change the indent of the XOSD window

## NAME

xosd\_set\_horizontal\_offset - Change the indent of the XOSD window

## SYNOPSIS

**#include \<xosd.h\>**

**int xosd\_set\_horizontal\_offset (xosd\*** *osd***, int** *offset***);**

## DESCRIPTION

**xosd\_set\_horizontal\_offset** changes the number of pixels the XOSD window is indent from the left of the screen.

## ARGUMENTS

- *osd*

  The on-screen display object to act on.

- *offset*

  Indent from the left of the screen, in pixels.

## RETURN VALUE

On success, a zero is returned. On error, -1 is returned.

## SEE ALSO

[**xosd\_create**(3)](/xosd_create/3.md), [**xosd\_set\_align**(3)](/xosd_set_align/3.md).
