diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
commit | 7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch) | |
tree | 686678532eefed525c242fd214d0cfb2914726c5 /app/wlib/test/boxtest.c |
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/wlib/test/boxtest.c')
-rw-r--r-- | app/wlib/test/boxtest.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/wlib/test/boxtest.c b/app/wlib/test/boxtest.c new file mode 100644 index 0000000..6cb5631 --- /dev/null +++ b/app/wlib/test/boxtest.c @@ -0,0 +1,31 @@ +#include <stdlib.h> +#include <stdio.h> +#include "wlib.h" + +#define TRUE (1) + +wWin_p mainW; + +int tests = 255; + +wWin_p wMain( int argc, char * argv[] ) +{ + mainW = wWinMainCreate( "drawtest", 300, 300, NULL, "Main", "Main", F_RESIZE, NULL, NULL ); + if (tests & 0x01) + wBoxCreate( mainW, 10, 10, NULL, wBoxThinB, 280, 280 ); + if (tests & 0x02) + wBoxCreate( mainW, 20, 20, NULL, wBoxThinW, 260, 260 ); + if (tests & 0x04) + wBoxCreate( mainW, 30, 30, NULL, wBoxAbove, 240, 240 ); + if (tests & 0x08) + wBoxCreate( mainW, 40, 40, NULL, wBoxBelow, 220, 220 ); + if (tests & 0x10) + wBoxCreate( mainW, 50, 50, NULL, wBoxThickB, 200, 200 ); + if (tests & 0x20) + wBoxCreate( mainW, 60, 60, NULL, wBoxThickW, 180, 180 ); + if (tests & 0x40) + wBoxCreate( mainW, 70, 70, NULL, wBoxRidge, 160, 160 ); + if (tests & 0x80) + wBoxCreate( mainW, 80, 80, NULL, wBoxTrough, 140, 140 ); + return mainW; +} |