summaryrefslogtreecommitdiffstats
path: root/src/fltk-test.cpp
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2011-05-24 12:38:13 (GMT)
committerTony Theodore <tonyt@logyst.com>2011-05-24 12:38:13 (GMT)
commit4cf9601e56117e3fb045a0325cc743884f7307b1 (patch)
tree05d7dbd1e48c55b26cfda4f1161bb464512cb8ae /src/fltk-test.cpp
parent94caa7482c293a74b3533bee27fbdd3d035f4eef (diff)
downloadmxe-4cf9601e56117e3fb045a0325cc743884f7307b1.zip
mxe-4cf9601e56117e3fb045a0325cc743884f7307b1.tar.gz
mxe-4cf9601e56117e3fb045a0325cc743884f7307b1.tar.bz2
package fltk: add test program
Diffstat (limited to 'src/fltk-test.cpp')
-rw-r--r--src/fltk-test.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/fltk-test.cpp b/src/fltk-test.cpp
new file mode 100644
index 0000000..cf154c5
--- /dev/null
+++ b/src/fltk-test.cpp
@@ -0,0 +1,20 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+/* http://www.fltk.org/doc-1.3/basics.html */
+#include <FL/Fl.H>
+#include <FL/Fl_Window.H>
+#include <FL/Fl_Box.H>
+
+int main(int argc, char **argv)
+{
+ Fl_Window *window = new Fl_Window(340,180);
+ Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
+ box->box(FL_UP_BOX);
+ box->labelfont(FL_BOLD+FL_ITALIC);
+ box->labelsize(36);
+ box->labeltype(FL_SHADOW_LABEL);
+ window->end();
+ window->show(argc, argv);
+ return Fl::run();
+} \ No newline at end of file