_S3DW_SCROLLBAR(9)
π _S3DW_SCROLLBAR(9) π
okay bestie, welcome to the s3d Manual, section 9 (that's the kernel-adjacent / low-level vibe, iykyk) π«Ά this one's all about the scrollbar of s3d widget. yes, the little bar. she's iconic. she scrolls. let's get into it π
β¨ NAME β¨
s3dw_scrollbar β scrollbar of s3d widget
like literally, that's her whole job. being the scrollbar. of an s3d widget. no cap πΈ
β¨ SYNOPSIS β¨
#include <s3dw.h>
that's it. that's the include. go off π
β¨ STRUCTURE MEMBERS β¨
here's the whole struct, and yes, you need every single field, don't skip a single one of my girls:
struct _s3dw_scrollbar {
s3dw_widget widget;
float pos;
float max;
int type;
int loid;
int roid;
int baroid;
s3dw_callback lonclick;
s3dw_callback ronclick;
}
let's break her down field by field, bestie:
s3dw_widget widgetβ the widget herself, the main character energy at the top of the struct πfloat posβ where you're at rn, position-wise, a lil float πfloat maxβ the ceiling, the limit, the "how far can we even go" float π¦int typeβ the type, an int, she contains multitudes β¨int loidβ the left object id, an int πint roidβ the right object id, an int πint baroidβ the bar object id, an int πs3dw_callback lonclickβ the left on-click callback π₯s3dw_callback ronclickβ the right on-click callback π₯
β¨ DESCRIPTION β¨
okay so here's the tea β The Scrollbar should be placed around scrollable content. that's the placement rule, don't be weird about it, she goes around the content that scrolls π
and now the important bit, the currently bit β pay attention bestie, this is a real limitation, not me being dramatic:
Currently only the left and right icons are clickable, via thelonclickandronclickcallbacks. π
so like, only those two icons do anything when you click them. that's the situation fr fr.
and here's the little plot twist that lowkey matters a lot: in vertical mode, the roles flip like this:
lonclickis the callback for the up icon β¬οΈronclickis the callback for the down icon β¬οΈ
so don't go thinking left = left and right = right when she's standing upright, because nope, in vertical mode left is up and right is down. the way that makes sense but also doesn't π just remember it.
β¨ AUTHOR β¨
Simon Wunderlich β Author of s3d π an absolute legend, we stan π«Ά
and that's the whole page bestie, you ate this π mwah π
s3d Β· _S3DW_SCROLLBAR(9) Β· that's the source, the version, and the manual page all wrapped up in a cute lil sign-off, periodt β¨π¦π
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· 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