xosd_set_pos(3)

πŸ“¦
version 2.2.15 Β· 2 versions
, in arch rolling, debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

xosd_set_align β€” bestie, this one changes the alignment of the XOSD window πŸ’…

(it lives in the XOSD Library section of the manual pages, just so you know where you are 🫢)


🌸 SYNOPSIS 🌸

#include <xosd.h>

int xosd_set_align (xosd* osd, xosd_align align);

okay so that's literally the whole vibe check: you hand it an osd object and an alignment, and it does the thing ✨


πŸŽ€ DESCRIPTION πŸŽ€

xosd_set_align changes the alignment of the XOSD window. that's it, that's the function πŸ’–

and here's the tea: the XOSD window is left aligned by default, so if you never call this, bestie, you're getting left. no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • osd β€” the on-screen display object you're acting on. it's the main character here, the thing getting its alignment changed πŸ‘‘
  • pos β€” one of XOSD_left, XOSD_center or XOSD_right. that's left, center or right of the screen respectively, in case the names weren't giving it away πŸ™ˆ

⭐ RETURN VALUE ⭐

  • on success, a zero comes back. iconic. we love a zero πŸŽ€
  • on error, -1 comes back. not iconic, but at least you'll know 😭

πŸ’œ SEE ALSO πŸ’œ

go read those too, they're all part of the same friend group 🫢


okay that's the whole page, bestie, you're officially aligned 🌈

X OSD Library, dated 2002-06-25, xosd_set_pos(3) β€” mwah, that's the source, the version and the date all wrapped up in a little bow πŸŽ€βœ¨πŸ’–