---
name: "xosd_set_shadow_direction"
section: "3"
platform: "linux"
package: "libxosd-dev"
version: "2.2.15-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/xosd_set_shadow_direction"
---

# xosd\_set\_shadow\_direction(3)

Set the direction of the shadow of the XODS window

## NAME

xosd\_set\_shadow\_direction - Set the direction of the shadow of the XODS window

## SYNOPSIS

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

**int xosd\_set\_pos (xosd\*** *osd***, shadow\_direction**  int xosd\_set\_shadow\_direction(xosd \*osd, int shadow\_direction)

## DESCRIPTION

**xosd\_set\_shadow\_direction** changes the direction of the XOSD shadow from 0 to 7, 0 being upwards and rotating clockwise. The default direction is 3.

## ARGUMENTS

- *osd*

  The on-screen display object ot act on.

- *shadow\_direction*

  Integer value from 0 to 7.

## RETURN VALUE

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

## SEE ALSO

**xosd\_set\_shadow\_offset**(3xosd)
