fltk/test
Albrecht Schlosser 6e407cb169 Fix Cairo drawing in test/cairo_test demo for Windows (#694)
On the Windows platform Cairo drawings must be flushed explicitly.
This is done in Fl_Cairo_Window after calling the draw callback but
it was neither done nor documented in test/cairo_test.cxx when using
another type of Window with its overloaded draw() method, i.e. when
FLTK was configured with --enable-cairoext or CMake OPTION_CAIROEXT.

Note: user code must either explicitly flush the Cairo drawings as
done here or destroy the Cairo context which is not done in this demo
because the Cairo context should be kept alive.
2023-03-12 16:01:58 +01:00
..
desktop Added missing semicolons in desktop file 2008-03-16 12:20:30 +00:00
images Move animated gif images to the test/images folder 2023-02-23 19:28:27 +01:00
mac-resources Refactor macOS bundle generation to avoid "quarantine" 2021-05-13 16:18:13 +02:00
pixmaps Move animated gif images to the test/images folder 2023-02-23 19:28:27 +01:00
.gitignore Improve and extend fl_contrast() (#370) 2022-12-28 18:16:23 +01:00
adjuster.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
animated.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
arc.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
ask.cxx Fl_String refactoring and extension (#683) 2023-02-23 15:42:05 +01:00
bitmap.cxx Include bitmap files rather than copying the source code 2021-05-08 15:23:17 +02:00
blocks.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
boxtype.cxx Fixing FLUID file corruption from issue #653 (#662) 2023-01-26 15:23:43 +01:00
browser.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
button.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
buttons.cxx Add Fl_Scheme_Choice widget and use it in test programs 2023-01-12 19:21:09 +01:00
cairo_test.cxx Fix Cairo drawing in test/cairo_test demo for Windows (#694) 2023-03-12 16:01:58 +01:00
checkers_pieces.fl More natural shading for Checkers pieces. 2022-01-29 00:25:34 +01:00
checkers.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
clipboard.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
clock.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
CMakeLists.txt CMake: build shared libs with OPTION_CAIROEXT (issue #250) 2023-03-09 17:34:05 +01:00
colbrowser.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
color_chooser.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
contrast.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
coordinates.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
cube.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
CubeMain.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
CubeView.cxx Update fluid tutorial on CubeView and demo code 2021-05-21 20:08:12 +02:00
CubeView.h Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
CubeViewUI.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
cursor.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
curve.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
demo.cxx Move global FLTK options into new app fltk-admin (#560) 2023-01-21 17:14:41 +01:00
demo.menu Move global FLTK options into new app fltk-admin (#560) 2023-01-21 17:14:41 +01:00
device.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
doublebuffer.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
editor.cxx Background color attribute for Fl_Text_Display. (#378) 2022-01-27 23:50:06 +01:00
fast_slow.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
file_chooser.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
flex_demo.cxx Rename some Fl_Flex methods for FLTK compliance (#594) 2022-12-15 16:46:40 +01:00
flex_login.cxx Rename some Fl_Flex methods for FLTK compliance (#594) 2022-12-15 16:46:40 +01:00
fltk-versions.cxx CMake: add examples folder to build (optional) 2020-08-21 18:55:12 +02:00
fonts.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
forms.cxx Rename 'srs.xbm' to its original name 'sorceress.xbm' 2021-05-08 15:21:23 +02:00
fractals.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
fracviewer.cxx Issue #109 contd: missed fractals.cxx fixes, also fix parens issue. 2021-02-15 17:46:15 -08:00
fracviewer.h Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
fromdos.c Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
fullscreen.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
gl_overlay.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
glpuzzle.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
handle_events.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
hello.cxx Update test/hello.cxx and related image 2021-01-13 15:12:26 +01:00
help_dialog.cxx Animated GIF support (Fl_Anim_GIF_Image class) (#375) 2023-01-21 17:27:58 +01:00
help_dialog.html Move animated gif images to the test/images folder 2023-02-23 19:28:27 +01:00
icon.cxx Fixes #297 - improvements for icon.cxx + icon() docs 2021-11-26 13:13:58 -08:00
iconize.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
image.cxx Generate FL/fl_config.h rather than FL/abi-version.h 2021-12-18 22:44:08 +01:00
inactive.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
input_choice.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
input.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
keyboard_ui.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
keyboard.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
keyboard.h Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
label.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
line_style.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
list_visuals.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
makedepend CMake: build shared libs with OPTION_CAIROEXT (issue #250) 2023-03-09 17:34:05 +01:00
Makefile CMake: build shared libs with OPTION_CAIROEXT (issue #250) 2023-03-09 17:34:05 +01:00
mandelbrot_ui.fl Adding color to test/mandelbrot (#634) 2023-01-05 14:10:46 +01:00
mandelbrot.cxx Fix new warnings in CI 2023-01-10 17:07:03 +01:00
mandelbrot.h Add necessary initialisation in test/mandelbrot 2023-01-14 20:07:30 +01:00
menubar.cxx Avoid "#undef __APPLE__" preprocessor directive 2023-02-07 07:17:23 +01:00
message.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
minimum.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
native-filechooser.cxx Allow unix style paths for windows native filechooser 2020-08-08 19:10:57 -07:00
navigation.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
offscreen.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
output.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
overlay.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
pack.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
pixmap_browser.cxx Animated GIF support (Fl_Anim_GIF_Image class) (#375) 2023-01-21 17:27:58 +01:00
pixmap.cxx Animated GIF support (Fl_Anim_GIF_Image class) (#375) 2023-01-21 17:27:58 +01:00
preferences.fl Update dependencies and fix whitespace errors 2023-02-02 17:09:14 +01:00
radio.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
README-unittests.txt Make unittest conform to CMP (#597) 2022-12-17 13:16:57 +01:00
README.txt Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
resize-arrows.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-arrows.h Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
resize-example1.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example2.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example3a.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example3b.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example3c.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example4a.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example4b.cxx add resize examples as per STR3433 2020-07-20 14:08:47 +02:00
resize-example5a.cxx Add new resize example to test and dox (PR #165) 2021-11-08 16:18:58 +01:00
resize-example5b.cxx Add new resize example to test and dox (PR #165) 2021-11-08 16:18:58 +01:00
resize-example5c.cxx Add new resize example to test and dox (PR #165) 2021-11-08 16:18:58 +01:00
resize.fl Bump version numbers for next minor release: FLTK 1.4.0. 2016-01-30 00:56:42 +00:00
resizebox.cxx Fixing _define before _include. 2022-11-06 16:19:53 +01:00
rgb.txt Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
rotated_text.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
scroll.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
shape.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
subwindow.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
sudoku.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
sudoku.ico Add missing icon for sudoku 2005-11-29 22:03:39 +00:00
sudoku.rc Windows: add icon to sudoku.exe (PR #36) 2020-07-16 12:25:51 +02:00
symbols.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
table.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
tabs.fl Fix compiler warning in test/tabs 2023-01-10 15:20:05 +01:00
threads.cxx Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
threads.h Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
tile.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
tiled_image.cxx Update dependencies and fix whitespace errors 2023-02-02 17:09:14 +01:00
trackball.c Fix compiler warnings (Windows, MSVC) 2021-08-30 13:56:28 +02:00
trackball.h Initial revision 1998-10-06 18:21:25 +00:00
tree.fl Replace all calls to sprintf() by calls to snprintf(). 2022-09-26 16:12:18 +02:00
twowin.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
unittest_about.cxx Make unittest conform to CMP (#597) 2022-12-17 13:16:57 +01:00
unittest_circles.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_complex_shapes.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_core.cxx Add Fl_String to Fl_Preferences (#687) 2023-02-25 22:44:39 +01:00
unittest_fast_shapes.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_images.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_points.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_schemes.cxx Add Fl_Scheme_Choice widget and use it in test programs 2023-01-12 19:21:09 +01:00
unittest_scrollbarsize.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_simple_terminal.cxx Make unittest conform to CMP (#597) 2022-12-17 13:16:57 +01:00
unittest_symbol.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_text.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittest_unicode.cxx Fix position() methods that shadow Fl_Widget::position() 2023-02-02 20:54:19 +01:00
unittest_viewport.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
unittests.cxx Fl_String refactoring and extension (#683) 2023-02-23 15:42:05 +01:00
unittests.h Fl_String refactoring and extension (#683) 2023-02-23 15:42:05 +01:00
utf8.cxx Animated GIF support (Fl_Anim_GIF_Image class) (#375) 2023-01-21 17:27:58 +01:00
valuators.fl Fixing FLUID file corruption from issue #653 (#662) 2023-01-26 15:23:43 +01:00
windowfocus.cxx Remove $Id$ tags, update URL's, and more 2020-07-06 20:28:20 +02:00
wizard.cxx Documentation on widget coordinates and layout, plus new test programs (#304) 2021-12-08 15:00:33 +01:00

test/README.txt - 20 Oct 1998
-----------------------------

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.

Type "make" to compile them all.

The program "demo" is a graphical interface to run all the demos. (you
may recognize this as a rewrite of an XForms program).

Some of the more interesting programs:

fractals:       A GLUT program with FL controls added to it

glpuzzle:       A GLUT program with no modifications

fullscreen:     Demo of how to make your window toggle to fill screen

list_visuals:   necessary to debug X visual stuff

mandelbrot:     A true application, using panels built in Fluid

menubar:        Demo of how FL's menus work

shiny:          Demo of drawing FL's controls using OpenGL

forms:          An XForms program to demonstrate emulation

colbrowser:     Another XForms program that is actually useful


-----------------------------------------------------
Note: this file is outdated and incomplete. (*FIXME*)
-----------------------------------------------------