S3DW_GETROOT(3)
β¨ S3DW_GETROOT β¨
okay bestie, welcome to the s3d manual, page S3DW_GETROOT(3) π this one is short and sweet and honestly iconic, so let's go π«Ά
πΈ NAME πΈ
s3dw_getroot β get the root π
π SYNOPSIS π
#include <s3dw.h>
s3dw_widget *s3dw_getroot(void);
no arguments, no drama, it just hands you the root π
π¦ DESCRIPTION π¦
so like. it returns the root-widget, which is the widget that holds all the surfaces β¨
why do you care?? because if you wanna move all the widgets at once, you just adjust the root-widget's x, y, and z, and then hit it with s3dw_moveit() πΊπ
fr fr, here's the vibe:
s3dw_widget *root = s3dw_getroot();
// move widget center to (0,5,0). upon creation, it's centered at (0,0,0),
// so this might move it up
root->x=0;
root->y=5;
root->z=0;
s3dw_moveit(root);
not me lowkey moving an entire scene with three assignments and one function call π that's the whole move. that's it. main character energy fr.
π AUTHOR π
Simon Wunderlich Author of s3d π
and that's the whole page bestie, no cap π§ ty for reading, mwah π
s3d Β· S3DW_GETROOT(3) Β· slay and goodbye ππ¦π
π¦ 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