'\" t .\" Title: s3dw_getroot .\" Author: Simon Wunderlich .\" Generator: DocBook XSL Stylesheets .\" .\" Manual: s3d Manual .\" Source: s3d .\" Language: English .\" .TH "S3DW_GETROOT" "3" "" "s3d" "s3d Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" s3dw_getroot \- get the root .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w's3dw_widget\ *s3dw_getroot('u .BI "s3dw_widget *s3dw_getroot(void);" .SH "DESCRIPTION" .PP 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() .sp .if n \{\ .RS 4 .\} .nf s3dw_widget *root = s3dw_getroot(); // move widget center to (0,5,0)\&. upon creation, it\*(Aqs centered at (0,0,0), // so this might move it up root\->x=0; root\->y=5; root\->z=0; s3dw_moveit(root); .fi .if n \{\ .RE .\} .SH "AUTHOR" .PP \fBSimon Wunderlich\fR .RS 4 Author of s3d .RE