diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:46:38 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:46:38 (GMT) |
commit | 2d970c26f02b56e4d98ab148fbed5d2753427672 (patch) | |
tree | 1d5c825a49336b8e5656e68f035272bd29344bb5 /Tests/X11/X11.c | |
parent | 5e2cc830f85eea886944f16395f0ba532ac26882 (diff) | |
download | CMake-2d970c26f02b56e4d98ab148fbed5d2753427672.zip CMake-2d970c26f02b56e4d98ab148fbed5d2753427672.tar.gz CMake-2d970c26f02b56e4d98ab148fbed5d2753427672.tar.bz2 |
Add test for X11
Diffstat (limited to 'Tests/X11/X11.c')
-rw-r--r-- | Tests/X11/X11.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c new file mode 100644 index 0000000..b877b31 --- /dev/null +++ b/Tests/X11/X11.c @@ -0,0 +1,38 @@ +#include <X11/Xlib.h> +#include <X11/Xutil.h> + +char hello[]="hello.world"; +char hi[]="Hi"; + +main(argc, argv) +int argc; +char **argv; +{ + Display *mydisplay; + Window mywindow; + GC mygc; + + XEvent myevent; + KeySym mykey; + + XSizeHints myhint; + int myscreen; + unsigned long myforeground, mybackground; + int i; + char text[10]; + int done; + + mydisplay=XOpenDisplay(""); + myscreen=DefaultScreen(mydisplay); + myforeground=BlackPixel(mydisplay, myscreen); + + mywindow=XCreateSimpleWindow(mydisplay, + DefaultRootWindow(mydisplay), + myhint.x, myhint.y, myhint.width, myhint.height, 5, + myforeground, mybackground ); + XDestroyWindow(mydisplay, mywindow); + XCloseDisplay(mydisplay); + exit(0); +} + + |