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 πŸŽ€πŸ¦‹πŸ’