'\" t .\" Title: s3dw_ani_mate .\" Author: Simon Wunderlich .\" Generator: DocBook XSL Stylesheets .\" .\" Manual: s3d Manual .\" Source: s3d .\" Language: English .\" .TH "S3DW_ANI_MATE" "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_ani_mate \- doing the whole animation thing .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'void\ s3dw_ani_mate('u .BI "void s3dw_ani_mate(void);" .SH "DESCRIPTION" .PP Just call this in your mainloop if you want some nice window sliding animations\&. it\*(Aqs somewhat bloating, but you don\*(Aqt want to miss it ;) .sp .if n \{\ .RS 4 .\} .nf #include // nanosleep() static struct timespec t={0\&.33*1000*1000}; // 33 mili seconds void mainloop() { // keep this in your mainloop\&. this will do smooth animations for you \&.\&.\&. s3dw_ani_mate(); nanosleep(&t,NULL); } \&.\&.\&.\&. s3d_mainloop(mainloop); .fi .if n \{\ .RE .\} .SH "AUTHOR" .PP \fBSimon Wunderlich\fR .RS 4 Author of s3d .RE