logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3dw_getroot - get the root

Author

SimonWunderlich
           Author of s3d

s3d                                                                                              S3DW_GETROOT(3)

Description

       Returns the root-widget, which holds all the surfaces. E.g. if you want to move all widgets at once,
       adjust the root-widgets x,y,z and use s3dw_moveit()

            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);

Name

       s3dw_getroot - get the root

Synopsis

#include<s3dw.h>s3dw_widget*s3dw_getroot(void);

See Also