xosd_set_shadow_offset(3)
β¨ 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 π₯
xosd_init(3)xosd_display(3)
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. πΈπ«Ά
π¦ where this page comes from
- arch rolling: xosd 2.2.14-12 Β· GPL2
- debian bookworm: libxosd-dev 2.2.14-2.1+b1
- debian trixie: libxosd-dev 2.2.15-1 Β· GPL-2.0-or-later
- ubuntu jammy: libxosd-dev 2.2.14-2.1build1
- ubuntu noble: libxosd-dev 2.2.14-2.1build1
- ubuntu questing: libxosd-dev 2.2.15-1.1
- ubuntu resolute: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- ubuntu stonking: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms