Added common heading and footer to all source files.
Updated README file. git-svn-id: file:///fltk/svn/fltk/trunk@22 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
af86963dfa
commit
8606d7508c
12
test/README
12
test/README
@ -1,10 +1,13 @@
|
|||||||
|
test/README - 20 Oct 1998
|
||||||
|
-------------------------
|
||||||
|
|
||||||
This directory contains tests and demos of FL. In most cases you can
|
This directory contains tests and demos of FL. In most cases you can
|
||||||
learn a lot about how to program FL by looking at the source code.
|
learn a lot about how to program FL by looking at the source code.
|
||||||
|
|
||||||
Type "make" to compile them all.
|
Type "make" to compile them all.
|
||||||
|
|
||||||
The program "demo" is a graphical interface to run all the demos.
|
The program "demo" is a graphical interface to run all the demos. (you
|
||||||
(you may recognize this as a rewrite of an XForms program).
|
may recognize this as a rewrite of an XForms program).
|
||||||
|
|
||||||
Some of the more interesting programs:
|
Some of the more interesting programs:
|
||||||
|
|
||||||
@ -25,8 +28,3 @@ shiny: Demo of drawing FL's controls using OpenGL
|
|||||||
forms: An XForms program to demonstrate emulation
|
forms: An XForms program to demonstrate emulation
|
||||||
|
|
||||||
colbrowser: Another XForms program that is actually useful
|
colbrowser: Another XForms program that is actually useful
|
||||||
|
|
||||||
The program "fl_image" can be compiled if you have the jpeg library.
|
|
||||||
The makefile assummes that the jpeg distribution resides in
|
|
||||||
../../jpeg-6a/. Perhaps edit the Makefile to fix this, and type
|
|
||||||
"make fl_image" to make this jpeg file viewer.
|
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Test the adjuster */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Adjuster test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -35,3 +58,7 @@ int main(int, char ** argv) {
|
|||||||
window.show();
|
window.show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: adjuster.cxx,v 1.2 1998/10/20 13:24:48 mike Exp $".
|
||||||
|
//
|
||||||
|
29
test/arc.cxx
29
test/arc.cxx
@ -1,4 +1,27 @@
|
|||||||
// Test fl_arc
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Arc drawing test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
@ -68,3 +91,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: arc.cxx,v 1.2 1998/10/20 13:24:49 mike Exp $".
|
||||||
|
//
|
||||||
|
|
||||||
|
44
test/ask.cxx
44
test/ask.cxx
@ -1,13 +1,34 @@
|
|||||||
/* ask.C
|
//
|
||||||
|
// "$Id"
|
||||||
Demonstrates how to use readqueue to see if a button has been
|
//
|
||||||
pushed, and to see if a window has been closed, thus avoiding
|
// Standard dialog test program for the Fast Light Tool Kit (FLTK).
|
||||||
the need to define callbacks.
|
//
|
||||||
|
// Demonstrates how to use readqueue to see if a button has been
|
||||||
This also demonstrates how to trap attempts by the user to
|
// pushed, and to see if a window has been closed, thus avoiding
|
||||||
close the last window by overriding Fl::exit
|
// the need to define callbacks.
|
||||||
|
//
|
||||||
*/
|
// This also demonstrates how to trap attempts by the user to
|
||||||
|
// close the last window by overriding Fl::exit
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -88,3 +109,6 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: ask.cxx,v 1.2 1998/10/20 13:24:50 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// test how bitmap label type draws
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Bitmap label test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -112,3 +135,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc, argv);
|
window.show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: bitmap.cxx,v 1.2 1998/10/20 13:24:50 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// produce the diagram of boxtypes for the documentation
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Boxtype test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -64,3 +87,7 @@ int main(int argc, char ** argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: boxtype.cxx,v 1.2 1998/10/20 13:24:51 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Browser test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is a test of how the browser draws lines.
|
This is a test of how the browser draws lines.
|
||||||
This is a second line.
|
This is a second line.
|
||||||
@ -68,4 +93,7 @@ int main(int argc, char **argv) {
|
|||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: browser.cxx,v 1.2 1998/10/20 13:24:52 mike Exp $".
|
||||||
|
//
|
||||||
|
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* This demo shows the different routines on browsers */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Browser operation test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include "forms.h"
|
#include "forms.h"
|
||||||
|
|
||||||
@ -79,3 +102,7 @@ main(int argc, char *argv[])
|
|||||||
fl_hide_form(form);
|
fl_hide_form(form);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: browserop.cxx,v 1.2 1998/10/20 13:24:53 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// Demonstration of how to do callbacks
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Button/callback test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -25,3 +48,7 @@ int main(int argc, char ** argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: button.cxx,v 1.2 1998/10/20 13:24:54 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// produce image for the documentation
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Another button test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -23,3 +46,7 @@ int main(int argc, char ** argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: buttons.cxx,v 1.2 1998/10/20 13:24:54 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,5 +1,30 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Checkers game for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Hours of fun: the FLTK checkers game!
|
// Hours of fun: the FLTK checkers game!
|
||||||
// Based on a very old algorithim, but it still works!
|
// Based on a very old algorithim, but it still works!
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
const char* copyright =
|
const char* copyright =
|
||||||
"Checkers game\n"
|
"Checkers game\n"
|
||||||
@ -1339,3 +1364,7 @@ int main(int argc, char **argv) {
|
|||||||
return VT100main();
|
return VT100main();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: checkers.cxx,v 1.4 1998/10/20 13:24:55 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// produce images for documentation
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Clock test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -22,3 +45,7 @@ int main(int argc, char **argv) {
|
|||||||
window2.show();
|
window2.show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: clock.cxx,v 1.2 1998/10/20 13:24:56 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,7 +1,32 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Forms test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// This is an XForms program from the 0.86 distribution of XForms.
|
// This is an XForms program from the 0.86 distribution of XForms.
|
||||||
// It has been modified as little as possible to work under fltk by
|
// It has been modified as little as possible to work under fltk by
|
||||||
// using fltk's Forms emulation.
|
// using fltk's Forms emulation. Search for "fltk" to find all the
|
||||||
// Search for "fltk" to find all the changes
|
// changes
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/forms.H> // changed for fltk
|
#include <FL/forms.H> // changed for fltk
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -314,3 +339,7 @@ create_form_cl(void)
|
|||||||
fl_end_form();
|
fl_end_form();
|
||||||
fl_scale_form(cl, 1.1, 1.0);
|
fl_scale_form(cl, 1.1, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: colbrowser.cxx,v 1.2 1998/10/20 13:24:56 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,8 +1,27 @@
|
|||||||
/* Test forcing fltk to draw in different visuals:
|
//
|
||||||
|
// "$Id"
|
||||||
This also tests fl_show_colormap and Fl_Color_Chooser
|
//
|
||||||
|
// Color chooser test program for the Fast Light Tool Kit (FLTK).
|
||||||
*/
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -125,3 +144,7 @@ int main(int argc, char ** argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: color_chooser.cxx,v 1.3 1998/10/20 13:24:57 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,10 +1,31 @@
|
|||||||
/* connect.C
|
//
|
||||||
|
// "$Id"
|
||||||
Program to make a button to turn a ppp connection on/off.
|
//
|
||||||
You must chmod +s /usr/sbin/pppd, and put all the options
|
// PPP example program for the Fast Light Tool Kit (FLTK).
|
||||||
into /etc/ppp/options.
|
//
|
||||||
|
// Program to make a button to turn a ppp connection on/off.
|
||||||
*/
|
// You must chmod +s /usr/sbin/pppd, and put all the options
|
||||||
|
// into /etc/ppp/options.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -45,3 +66,7 @@ int main(int argc, char ** argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: connect.cxx,v 1.2 1998/10/20 13:24:58 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,6 +1,29 @@
|
|||||||
/* demo08 rewritten to not use Forms compatability */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Another forms test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Modified to have 2 cubes to test multiple OpenGL contexts
|
// Modified to have 2 cubes to test multiple OpenGL contexts
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -145,3 +168,6 @@ main(int argc, char **argv) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: cube.cxx,v 1.2 1998/10/20 13:24:58 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,6 +1,27 @@
|
|||||||
// cursor.C
|
//
|
||||||
|
// "$Id"
|
||||||
// Test the cursor setting code
|
//
|
||||||
|
// Cursor test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -136,3 +157,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: cursor.cxx,v 1.2 1998/10/20 13:24:59 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// Test fl_curve
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Curve test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
@ -85,4 +108,6 @@ int main(int argc, char** argv) {
|
|||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: curve.cxx,v 1.2 1998/10/20 13:25:00 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,10 +1,27 @@
|
|||||||
/* demo.C
|
//
|
||||||
|
// "$Id"
|
||||||
The Forms demo program, rewritten in fltk.
|
//
|
||||||
The original code compiled fine, but this version does not use
|
// Main demo program for the Fast Light Tool Kit (FLTK).
|
||||||
<forms.h>
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
*/
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -253,3 +270,7 @@ int main(int argc, char **argv) {
|
|||||||
Fl::run();
|
Fl::run();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: demo.cxx,v 1.2 1998/10/20 13:25:00 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,14 +1,37 @@
|
|||||||
// Double-buffering test.
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Double-buffering test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// This demo shows how double buffering helps, by drawing the
|
// This demo shows how double buffering helps, by drawing the
|
||||||
// window in a particularily bad way.
|
// window in a particularily bad way.
|
||||||
|
//
|
||||||
// The single-buffered window will blink as it updates. The
|
// The single-buffered window will blink as it updates. The
|
||||||
// double buffered one will not. It will take just as long
|
// double buffered one will not. It will take just as long
|
||||||
// (or longer) to update, but often it will appear to be faster.
|
// (or longer) to update, but often it will appear to be faster.
|
||||||
|
//
|
||||||
// This demo should work for both the GL and X versions of Fl,
|
// This demo should work for both the GL and X versions of Fl,
|
||||||
// even though the double buffering mechanism is totally different.
|
// even though the double buffering mechanism is totally different.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Single_Window.H>
|
#include <FL/Fl_Single_Window.H>
|
||||||
@ -97,3 +120,7 @@ int main() {
|
|||||||
w2.show();
|
w2.show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: doublebuffer.cxx,v 1.2 1998/10/20 13:25:01 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Test fl_file_chooser() */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// File chooser test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Button.H>
|
#include <FL/Fl_Button.H>
|
||||||
@ -34,3 +57,7 @@ int main(int argc, char **argv) {
|
|||||||
fl_file_chooser_callback(thecb);
|
fl_file_chooser_callback(thecb);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: file_chooser.cxx,v 1.2 1998/10/20 13:25:02 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,24 +1,44 @@
|
|||||||
/* Test fl_draw_image.
|
//
|
||||||
|
// "$Id"
|
||||||
Be sure to try every visual with the -v switch and try
|
//
|
||||||
-m (monochrome) on each of them.
|
// fl_draw_image test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
This program requires either the libjpeg.a library or
|
// Be sure to try every visual with the -v switch and try -m (monochrome)
|
||||||
an internal DD library to read images (this is chosen
|
// on each of them.
|
||||||
by the presence of the "DD" #define).
|
//
|
||||||
|
// This program requires either the libjpeg.a library or an internal DD
|
||||||
To get the jpeg library:
|
// library to read images (this is chosen by the presence of the "DD"
|
||||||
|
// #define).
|
||||||
The "official" archive site for this software is ftp.uu.net (Internet
|
//
|
||||||
address 192.48.96.9). The most recent released version can always be found
|
// To get the jpeg library:
|
||||||
there in directory graphics/jpeg. This particular version will be archived
|
//
|
||||||
as graphics/jpeg/jpegsrc.v6a.tar.gz.
|
// The "official" archive site for this software is ftp.uu.net (Internet
|
||||||
|
// address 192.48.96.9). The most recent released version can always be
|
||||||
The makefile assummes you decompressed and build these
|
// found there in directory graphics/jpeg. This particular version will
|
||||||
in a directory called "jpeg-6a" in the same location as the
|
// be archived as graphics/jpeg/jpegsrc.v6a.tar.gz.
|
||||||
"FL" directory.
|
//
|
||||||
|
// The makefile assummes you decompressed and build these in a directory
|
||||||
*/
|
// called "jpeg-6a" in the same location as the "FL" directory.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
@ -176,3 +196,6 @@ void readtheimage(const char *name) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: fl_jpeg_image.cxx,v 1.2 1998/10/20 13:25:02 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* demo of Fl::set_fonts() */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Font demo program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -125,3 +148,7 @@ int main(int argc, char **argv) {
|
|||||||
form->show(argc,argv);
|
form->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: fonts.cxx,v 1.2 1998/10/20 13:25:03 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,9 +1,33 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Another forms demo for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// This is an XForms program with very few changes.
|
// This is an XForms program with very few changes.
|
||||||
// Search for "fltk" to find all changes necessary to port to fltk.
|
// Search for "fltk" to find all changes necessary to port to fltk.
|
||||||
|
//
|
||||||
/* This demo show the different boxtypes. Note that some
|
// This demo show the different boxtypes. Note that some
|
||||||
* boxtypes are not appropriate for some objects
|
// boxtypes are not appropriate for some objects
|
||||||
*/
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/forms.H> // changed for fltk
|
#include <FL/forms.H> // changed for fltk
|
||||||
|
|
||||||
@ -203,3 +227,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: forms.cxx,v 1.2 1998/10/20 13:25:04 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,8 +1,31 @@
|
|||||||
/* Fractal drawing program
|
//
|
||||||
This is a GLUT demo program, with modifications to
|
// "$Id"
|
||||||
demonstrate how to add fltk controls to a glut program. The glut
|
//
|
||||||
code is unchanged except for the end (search for fltk to find changes).
|
// Fractal drawing demo for the Fast Light Tool Kit (FLTK).
|
||||||
*/
|
//
|
||||||
|
// This is a GLUT demo program, with modifications to
|
||||||
|
// demonstrate how to add fltk controls to a glut program. The glut
|
||||||
|
// code is unchanged except for the end (search for fltk to find changes).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#if !HAVE_GL
|
#if !HAVE_GL
|
||||||
@ -777,3 +800,7 @@ int main(int argc, char** argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: fractals.cxx,v 1.2 1998/10/20 13:25:04 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,37 +1,58 @@
|
|||||||
/* fullscreen.C
|
//
|
||||||
|
// "$Id"
|
||||||
This demo shows how to do many of the window manipulations that
|
//
|
||||||
are popular on SGI programs, even though X does not really like
|
// Fullscreen test program for the Fast Light Tool Kit (FLTK).
|
||||||
them. You can toggle the border on/off, change the visual to
|
//
|
||||||
switch between single/double buffer, and make the window take
|
// This demo shows how to do many of the window manipulations that
|
||||||
over the screen.
|
// are popular on SGI programs, even though X does not really like
|
||||||
|
// them. You can toggle the border on/off, change the visual to
|
||||||
Normally the program makes a single window with a child GL window.
|
// switch between single/double buffer, and make the window take
|
||||||
This simulates a program where the 3D display is surrounded by
|
// over the screen.
|
||||||
control knobs. Running the program with an argument will
|
//
|
||||||
make it make a seperate GL window from the controls window. This
|
// Normally the program makes a single window with a child GL window.
|
||||||
simulates a (older?) style program where the graphics display is
|
// This simulates a program where the 3D display is surrounded by
|
||||||
a different window than the controls.
|
// control knobs. Running the program with an argument will
|
||||||
|
// make it make a seperate GL window from the controls window. This
|
||||||
This program reports how many times it redraws the window to
|
// simulates a (older?) style program where the graphics display is
|
||||||
stdout, so you can see how much time it is wasting. It appears
|
// a different window than the controls.
|
||||||
to be impossible to prevent X from sending redundant resize
|
//
|
||||||
events, so there are extra redraws. But the way I have the
|
// This program reports how many times it redraws the window to
|
||||||
code arranged here seems to be keeping that to a minimu.
|
// stdout, so you can see how much time it is wasting. It appears
|
||||||
|
// to be impossible to prevent X from sending redundant resize
|
||||||
Apparently unavoidable bugs:
|
// events, so there are extra redraws. But the way I have the
|
||||||
|
// code arranged here seems to be keeping that to a minimu.
|
||||||
Turning the border on causes an unnecessary redraw.
|
//
|
||||||
|
// Apparently unavoidable bugs:
|
||||||
Turning off full screen when the border is on causes an unnecessary
|
//
|
||||||
resize and redraw when the program turns the border on.
|
// Turning the border on causes an unnecessary redraw.
|
||||||
|
//
|
||||||
If it is a seperate window, turning double buffering on and off
|
// Turning off full screen when the border is on causes an unnecessary
|
||||||
will cause the window to raise, deiconize, and possibly move. You
|
// resize and redraw when the program turns the border on.
|
||||||
can avoid this by making the Fl_Gl_Window a child of a normal
|
//
|
||||||
window.
|
// If it is a seperate window, turning double buffering on and off
|
||||||
|
// will cause the window to raise, deiconize, and possibly move. You
|
||||||
*/
|
// can avoid this by making the Fl_Gl_Window a child of a normal
|
||||||
|
// window.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -217,3 +238,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: fullscreen.cxx,v 1.2 1998/10/20 13:25:05 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* The simple GL demo, modified to draw the GL overlay as well */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// OpenGL overlay test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -126,3 +149,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: gl_overlay.cxx,v 1.2 1998/10/20 13:25:06 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,5 +1,30 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// OpenGL puzzle demo for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// This is a GLUT demo program to demonstrate fltk's GLUT emulation.
|
// This is a GLUT demo program to demonstrate fltk's GLUT emulation.
|
||||||
// Search for "fltk" to find all the changes
|
// Search for "fltk" to find all the changes
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
// this block added for fltk's distribtion so it will compile w/o OpenGL:
|
// this block added for fltk's distribtion so it will compile w/o OpenGL:
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@ -1453,3 +1478,6 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
#endif // added for fltk's distribution
|
#endif // added for fltk's distribution
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: glpuzzle.cxx,v 1.2 1998/10/20 13:25:06 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Example program from the documentation */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Hello, World! program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -14,3 +37,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc, argv);
|
window->show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: hello.cxx,v 1.2 1998/10/20 13:25:07 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// Fl_Window::iconize() test
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Iconize test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -52,3 +75,7 @@ int main(int argc, char **argv) {
|
|||||||
control.callback(window_cb);
|
control.callback(window_cb);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: iconize.cxx,v 1.2 1998/10/20 13:25:08 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,8 +1,31 @@
|
|||||||
// Test of class Fl_Image
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Fl_Image test program for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Notice that Fl_Image is for a static, multiple-reuse image, such
|
// Notice that Fl_Image is for a static, multiple-reuse image, such
|
||||||
// as an icon or postage stamp. Use fl_draw_image to go directly
|
// as an icon or postage stamp. Use fl_draw_image to go directly
|
||||||
// from an buffered image that changes often.
|
// from an buffered image that changes often.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -108,3 +131,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc, argv);
|
window.show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: image.cxx,v 1.3 1998/10/20 13:25:09 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Test input fields */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Input field test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -90,3 +113,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: input.cxx,v 1.2 1998/10/20 13:25:09 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,24 +1,44 @@
|
|||||||
/* Test fl_draw_image.
|
//
|
||||||
|
// "$Id"
|
||||||
Be sure to try every visual with the -v switch and try
|
//
|
||||||
-m (monochrome) on each of them.
|
// fl_draw_image test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
This program requires either the libjpeg.a library or
|
// Be sure to try every visual with the -v switch and try -m (monochrome)
|
||||||
an internal DD library to read images (this is chosen
|
// on each of them.
|
||||||
by the presence of the "DD" #define).
|
//
|
||||||
|
// This program requires either the libjpeg.a library or an internal DD
|
||||||
To get the jpeg library:
|
// library to read images (this is chosen by the presence of the "DD"
|
||||||
|
// #define).
|
||||||
The "official" archive site for this software is ftp.uu.net (Internet
|
//
|
||||||
address 192.48.96.9). The most recent released version can always be found
|
// To get the jpeg library:
|
||||||
there in directory graphics/jpeg. This particular version will be archived
|
//
|
||||||
as graphics/jpeg/jpegsrc.v6a.tar.gz.
|
// The "official" archive site for this software is ftp.uu.net (Internet
|
||||||
|
// address 192.48.96.9). The most recent released version can always be
|
||||||
The makefile assummes you decompressed and build these
|
// found there in directory graphics/jpeg. This particular version will
|
||||||
in a directory called "jpeg-6a" in the same location as the
|
// be archived as graphics/jpeg/jpegsrc.v6a.tar.gz.
|
||||||
"FL" directory.
|
//
|
||||||
|
// The makefile assummes you decompressed and build these in a directory
|
||||||
*/
|
// called "jpeg-6a" in the same location as the "FL" directory.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
@ -177,3 +197,6 @@ void readtheimage(const char *name) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: jpeg_image.cxx,v 1.2 1998/10/20 13:25:10 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,16 +1,41 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Keyboard/event test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Continuously display FLTK's event state.
|
// Continuously display FLTK's event state.
|
||||||
|
//
|
||||||
// Known bugs:
|
// Known bugs:
|
||||||
|
//
|
||||||
// X insists on reporting the state *before* the shift key was
|
// X insists on reporting the state *before* the shift key was
|
||||||
// pressed, rather than after, on shift key events. I fixed this for
|
// pressed, rather than after, on shift key events. I fixed this for
|
||||||
// the mouse buttons, but it did not seem worth it for shift.
|
// the mouse buttons, but it did not seem worth it for shift.
|
||||||
|
//
|
||||||
// X servers do not agree about any shift flags after except shift, ctrl,
|
// X servers do not agree about any shift flags after except shift, ctrl,
|
||||||
// lock, and alt. They may also not agree about the symbols for the extra
|
// lock, and alt. They may also not agree about the symbols for the extra
|
||||||
// keys Micro$oft put on the keyboard.
|
// keys Micro$oft put on the keyboard.
|
||||||
|
//
|
||||||
// On Irix the backslash key does not work. A bug in XKeysymToKeycode?
|
// On IRIX the backslash key does not work. A bug in XKeysymToKeycode?
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include "keyboard_ui.C"
|
#include "keyboard_ui.C"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -100,3 +125,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: keyboard.cxx,v 1.2 1998/10/20 13:25:11 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,8 +1,27 @@
|
|||||||
/* Test all the built-in labeltypes, and fl_font
|
//
|
||||||
|
// "$Id"
|
||||||
This is also a good double-buffering test.
|
//
|
||||||
|
// Label test program for the Fast Light Tool Kit (FLTK).
|
||||||
*/
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
@ -135,3 +154,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: label.cxx,v 1.2 1998/10/20 13:25:11 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Visual list utility for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// List all the visuals on the screen, and dumps anything interesting
|
// List all the visuals on the screen, and dumps anything interesting
|
||||||
// about them to stdout.
|
// about them to stdout.
|
||||||
//
|
//
|
||||||
@ -5,6 +10,26 @@
|
|||||||
//
|
//
|
||||||
// This file may be #included in another program to make a function to
|
// This file may be #included in another program to make a function to
|
||||||
// call to list the visuals. Fl.H must be included first to indicate this.
|
// call to list the visuals. Fl.H must be included first to indicate this.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -209,4 +234,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// end of list_visuals.C
|
//
|
||||||
|
// End of "$Id: list_visuals.cxx,v 1.3 1998/10/20 13:25:12 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Mandelbrot set demo for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include "mandelbrot_ui.C"
|
#include "mandelbrot_ui.C"
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -198,3 +223,7 @@ void w_callback(Fl_Input* o, Drawing_Window* s) {
|
|||||||
s->d->scale = v;
|
s->d->scale = v;
|
||||||
s->d->new_display();
|
s->d->new_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: mandelbrot.cxx,v 1.2 1998/10/20 13:25:12 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Mandelbrot set header file for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
#include <FL/Fl_Slider.H>
|
#include <FL/Fl_Slider.H>
|
||||||
@ -52,3 +77,7 @@ public:
|
|||||||
Fl_Window *window;
|
Fl_Window *window;
|
||||||
void update_label();
|
void update_label();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: mandelbrot.h,v 1.2 1998/10/20 13:25:13 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Menubar test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -180,3 +205,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc, argv);
|
window.show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: menubar.cxx,v 1.2 1998/10/20 13:25:14 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Message test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/fl_ask.H>
|
#include <FL/fl_ask.H>
|
||||||
@ -16,3 +41,7 @@ int main(int, char **) {
|
|||||||
fl_password("Enter your password:"));
|
fl_password("Enter your password:"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: message.cxx,v 1.2 1998/10/20 13:25:14 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,19 +1,44 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Minimal update test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// This is a test of the minimal update code. The right slider has a
|
// This is a test of the minimal update code. The right slider has a
|
||||||
// label that extends outside it's border, and the minimal update
|
// label that extends outside it's border, and the minimal update
|
||||||
// assummes this does not happen. Thus there is *supposed* to be
|
// assummes this does not happen. Thus there is *supposed* to be
|
||||||
// display errors when you move the right-most or any other slider.
|
// display errors when you move the right-most or any other slider.
|
||||||
// If you *don't* see these errors, then the minimal update is
|
// If you *don't* see these errors, then the minimal update is
|
||||||
// broken!!!
|
// broken!!!
|
||||||
|
//
|
||||||
// I cannot emphasize how important it is to test this and make sure
|
// I cannot emphasize how important it is to test this and make sure
|
||||||
// any changes have not broken the minimal update. These sort of bugs
|
// any changes have not broken the minimal update. These sort of bugs
|
||||||
// are extremely hard to fix and must be detected right away!
|
// are extremely hard to fix and must be detected right away!
|
||||||
|
//
|
||||||
// The reason it is important to fix this is that otherwise you will
|
// The reason it is important to fix this is that otherwise you will
|
||||||
// swiftly end up with a toolkit that thinks it has to draw the window
|
// swiftly end up with a toolkit that thinks it has to draw the window
|
||||||
// 20 times each time the display changes. I don't care how fast the
|
// 20 times each time the display changes. I don't care how fast the
|
||||||
// machine is, this is an insane waste of resources, and should be
|
// machine is, this is an insane waste of resources, and should be
|
||||||
// stopped!
|
// stopped!
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -47,3 +72,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc, argv);
|
window->show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: minimum.cxx,v 1.2 1998/10/20 13:25:15 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,6 +1,30 @@
|
|||||||
/* Silly test of navigation keys.
|
//
|
||||||
This is not a recommended method of laying out your panels!
|
// "$Id"
|
||||||
*/
|
//
|
||||||
|
// Navigation test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Silly test of navigation keys. This is not a recommended method of
|
||||||
|
// laying out your panels!
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -40,3 +64,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show();
|
window.show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: navigation.cxx,v 1.2 1998/10/20 13:25:16 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// Test of Fl_Output and Fl_Multiline_Output
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Output test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Value_Input.H> // necessary for bug in mingw32?
|
#include <FL/Fl_Value_Input.H> // necessary for bug in mingw32?
|
||||||
@ -72,3 +95,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: output.cxx,v 1.2 1998/10/20 13:25:16 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Test the Fl_Overlay_Window */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Overlay window test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -55,3 +78,7 @@ int main(int argc, char **argv) {
|
|||||||
ovl->redraw_overlay();
|
ovl->redraw_overlay();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: overlay.cxx,v 1.2 1998/10/20 13:25:17 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,6 +1,31 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Fl_Pack test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Rather crude test of the Fl_Pack object.
|
// Rather crude test of the Fl_Pack object.
|
||||||
// Changing the type() of an Fl_Pack after it is displayed is not supported
|
// Changing the type() of an Fl_Pack after it is displayed is not supported
|
||||||
// so I have to do a lot of resizing of things before that.
|
// so I have to do a lot of resizing of things before that.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Button.H>
|
#include <FL/Fl_Button.H>
|
||||||
@ -87,3 +112,7 @@ int main(int argc, char **argv) {
|
|||||||
w->show(argc, argv);
|
w->show(argc, argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: pack.cxx,v 1.2 1998/10/20 13:25:18 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// test how pixmap label type draws
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Pixmap label test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
@ -62,3 +85,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: pixmap.cxx,v 1.2 1998/10/20 13:25:18 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,7 +1,30 @@
|
|||||||
// More complex and hacked pixmap demo.
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Another pixmap test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// On purpose, I do NOT provide a fltk method to turn a file
|
// On purpose, I do NOT provide a fltk method to turn a file
|
||||||
// into a pixmap. This program uses a rather simplistic one.
|
// into a pixmap. This program uses a rather simplistic one.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
@ -139,3 +162,7 @@ int main(int argc, char **argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: pixmap_browser.cxx,v 1.2 1998/10/20 13:25:19 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// Test the position of the resizebox
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Resize box test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#define W1 (big ? 60 : 40)
|
#define W1 (big ? 60 : 40)
|
||||||
#define B 0
|
#define B 0
|
||||||
@ -72,3 +95,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: resizebox.cxx,v 1.2 1998/10/20 13:25:20 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Fl_Scroll test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
#include <FL/Fl_Scroll.H>
|
#include <FL/Fl_Scroll.H>
|
||||||
@ -110,3 +135,7 @@ int main(int argc, char** argv) {
|
|||||||
window.show(argc,argv);
|
window.show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: scroll.cxx,v 1.2 1998/10/20 13:25:20 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
/* Tiny GL-drawing demo from documentation */
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Tiny OpenGL demo program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
@ -89,3 +112,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: shape.cxx,v 1.2 1998/10/20 13:25:21 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,5 +1,27 @@
|
|||||||
// Test of gl_start() and gl_finish()
|
//
|
||||||
// Also sample code of using OpenGL to draw a boxtype.
|
// "$Id"
|
||||||
|
//
|
||||||
|
// OpenGL "shiny buttons" test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "shiny_panel.C"
|
#include "shiny_panel.C"
|
||||||
@ -279,3 +301,7 @@ int main(int argc, char **argv) {
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: shiny.cxx,v 1.2 1998/10/20 13:25:22 mike Exp $".
|
||||||
|
//
|
||||||
|
34
test/style.C
34
test/style.C
@ -1,13 +1,36 @@
|
|||||||
// style.C
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Style demo for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Demo of a control panel for Fltk "style" changes.
|
// Demo of a control panel for Fltk "style" changes.
|
||||||
|
//
|
||||||
// You can use this as-is, or modify it to your needs.
|
// You can use this as-is, or modify it to your needs.
|
||||||
|
//
|
||||||
// To save & restore a style you should write the data to a file of
|
// To save & restore a style you should write the data to a file of
|
||||||
// your own design. Most likely your program has it's own configuration
|
// your own design. Most likely your program has it's own configuration
|
||||||
// that you want to save as well, and it is user friendly to put all
|
// that you want to save as well, and it is user friendly to put all
|
||||||
// this into the same file.
|
// this into the same file.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
// This is the part you want to copy to another program. The
|
// This is the part you want to copy to another program. The
|
||||||
@ -139,3 +162,6 @@ void defaults_cb(Fl_Button*, void*) {
|
|||||||
fl_alert("Sorry, I didn't implement that");
|
fl_alert("Sorry, I didn't implement that");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: style.C,v 1.2 1998/10/20 13:25:23 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,7 +1,32 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Nested window test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
// Test to make sure nested windows work.
|
// Test to make sure nested windows work.
|
||||||
// Events should be reported for enter/exit and all mouse operations
|
// Events should be reported for enter/exit and all mouse operations
|
||||||
// Buttons and pop-up menu should work, indicating that mouse positions
|
// Buttons and pop-up menu should work, indicating that mouse positions
|
||||||
// are being correctly translated.
|
// are being correctly translated.
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -105,3 +130,7 @@ int main(int, char **) {
|
|||||||
window->show();
|
window->show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: subwindow.cxx,v 1.2 1998/10/20 13:25:24 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,4 +1,27 @@
|
|||||||
// produce diagram used in the documentation:
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Symbol test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -60,3 +83,7 @@ bt("@DnArrow");
|
|||||||
window->show(argc,argv);
|
window->show(argc,argv);
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: symbols.cxx,v 1.2 1998/10/20 13:25:24 mike Exp $".
|
||||||
|
//
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
//
|
||||||
|
// "$Id"
|
||||||
|
//
|
||||||
|
// Tile test program for the Fast Light Tool Kit (FLTK).
|
||||||
|
//
|
||||||
|
// Copyright 1998 by Bill Spitzak and others.
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Library General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Library General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Library General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
// USA.
|
||||||
|
//
|
||||||
|
// Please report all bugs and problems to "fltk-bugs@easysw.com".
|
||||||
|
//
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
#include <FL/Fl_Tile.H>
|
#include <FL/Fl_Tile.H>
|
||||||
@ -59,3 +84,7 @@ int main(int argc, char** argv) {
|
|||||||
w1.show();
|
w1.show();
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// End of "$Id: tile.cxx,v 1.2 1998/10/20 13:25:25 mike Exp $".
|
||||||
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user