---
name: "xosd_set_align"
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_align"
---

# xosd\_set\_align(3)

Change the alignment of the XOSD window

## NAME

xosd\_set\_align - Change the alignment of the XOSD window

## SYNOPSIS

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

**int xosd\_set\_align (xosd\*** *osd***, xosd\_align** *align***);**

## DESCRIPTION

**xosd\_set\_align** changes the alignment of the XOSD window, which is left aligned by default.

## ARGUMENTS

- *osd*

  The on-screen display object to act on.

- *pos*

  One of **XOSD\_left** , **XOSD\_center** or **XOSD\_right** (for the left, center or right of the screen respectively).

## RETURN VALUE

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

## SEE ALSO

**xosd\_init**(3), **xosd\_set\_offset**(3), [**xosd\_set\_pos**(3)](/xosd_set_pos/3.md), [**xosd**(3)](/xosd/3.md).
