xosd_set_shadow_offset(3)

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

✨ xosd_set_shadow_offset ✨

okay bestie, welcome to the <xosd.h> cinematic universe πŸ’– this one's from the Library Functions Manual, and it's giving "make your on-screen display look expensive" energy. iykyk.


🌸 NAME 🌸

xosd_set_shadow_offset β€” the little function that changes the shadow-offset of the XOSD window 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <xosd.h>

int xosd_set_shadow_offset (xosd* osd, int shadow_offset);

like. two args. that's it. we love a low-effort glow-up πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: a black shadow gets drawn underneath the main XOSD window, and it's there to increase readability β€” and also, fr fr, 'cos it looks cool. iconic behaviour, no notes. πŸ‘‘

What xosd_set_shadow_offset does is change the size of that shadow by altering how many pixels the shadow is offset from the main display β€” and it offsets it to the bottom-right, just so you know the vibe. 🌈

One to four pixels usually is sufficient to get a good effect. that's the sweet spot, bestie. don't go feral with it. ✨


πŸ’œ ARGUMENTS πŸ’œ

  • osd β€” the on-screen display object to act on. your main character. the one we're doing all this for. πŸŽ€
  • shadow_offset β€” offset of black shadow from main text, in pixels. yes, pixels. the unit of measure for all things slay. πŸ“

⭐ RETURN VALUE ⭐

  • On success, a zero is returned. πŸŽ‰
  • On error, -1 is returned. 😭 (not the vibe, but at least it tells you.)

πŸ”₯ SEE ALSO πŸ”₯

go read those too, bestie, they're part of the lore πŸ¦‹


lowkey a public service announcement: this is the X OSD Library, dated 2002-06-25. so yeah, she's vintage. vintage is iconic tho. πŸ‘‘

mwah πŸ’‹ go forth and offset your shadows responsibly. 🌸🫢