fltk/test
Albrecht Schlosser eb70e46d2a Fixed gray scale w/alpha image drawing for Mac OS with Quartz (FLTK 1.1
with Quickdraw worked) in src/Fl_Images.cxx.

Changed test/unittest_images.cxx to use Fl_RGB_Image::draw() to draw images
with alpha channel, because  the current version of fl_draw_image()
supports alpha channels only on Mac. Tested on Windows[1], Linux, and Mac.

[1] Windows with GDI drawing doesn't work yet for gray+alpha (STR 2105).

To do: Check, if fl_draw_image() should support alpha channel images
on all platforms or not at all. The current documentation mentions only
RGB and gray scale images. IMHO the behavior is undefined for values of
abs(d) == 2 and abs(d) > 3. See also fl_draw_image_mono().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21 09:25:22 +00:00
..
blocks.app/Contents Do some rearranging of image and desktop support files. 2006-08-25 06:58:33 +00:00
checkers.app/Contents Update OSX icons. 2006-01-15 19:12:08 +00:00
desktop Added missing semicolons in desktop file 2008-03-16 12:20:30 +00:00
pixmaps Removed DOS style ^M's; they were preventing SGI compiles (partial STR#2174) 2009-03-13 22:58:31 +00:00
sudoku.app/Contents Update OSX icons. 2006-01-15 19:12:08 +00:00
adjuster.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
arc.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
ask.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
bitmap.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
blocks.cxx Fixed some typos and some funny language (my own) in the documentation of the test applications. ADded a hidden [+] key support for 'Blocks' so that I can increase the level to my prefered one (6) and not have to play through 1-5 ;-) 2007-11-19 14:14:13 +00:00
boxtype.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
browser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
button.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
buttons.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
cairo_test.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
checkers.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
clock.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
CMakeLists.txt Cmake updates (STR #645) 2005-02-06 00:17:50 +00:00
colbrowser.cxx + Fixed font set to const string was potentially free in 2009-01-04 16:21:42 +00:00
color_chooser.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
connect.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
cube.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeMain.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeView.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeView.h Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeViewUI.fl New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372) 2006-08-17 09:49:43 +00:00
cursor.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
curve.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
demo.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
demo.menu Remove mcast and dnd test programs. I do like them and they should be back eventually, however right now they ae not in the scope of the UTF8 port. 2008-09-11 10:38:40 +00:00
doublebuffer.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
editor.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fast_slow.fl Redid Carl's fix to fast_slow (making it be output widgets rather 1999-05-06 06:21:53 +00:00
file_chooser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
fl_jpeg_image.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fonts.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
forms.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fractals.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fracviewer.cxx Fix <FL/glu.h> includes. 2006-08-25 16:12:13 +00:00
fracviewer.h Fixup fractals demo so it doesn't get way ahead of display - some Linux 2002-01-03 14:08:08 +00:00
fromdos.c Initial revision 1998-10-06 18:21:25 +00:00
fullscreen.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
gl_overlay.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
glpuzzle.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
hello.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
help.cxx Help demo: now loads the non framed version main.html instead of index.html 2009-01-20 08:53:11 +00:00
iconize.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
image.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
inactive.fl STR #1052: updated color handling in test programs. If you are planning on creating labels based on foreground or background color, you should load the colors *before* creating the user interface. This is done by calling: 2005-11-02 13:57:56 +00:00
input_choice.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
input.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
keyboard_ui.fl Fix build problems in test directory - no more recursive dependencies for 2001-12-30 05:16:10 +00:00
keyboard.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
keyboard.h Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
label.cxx STR#2035 fix : Changed all 1998-200[0-8] dates to 1998-2009 for supported fltk files (this excludes i.e the png subdir). 2009-01-12 14:52:45 +00:00
line_style.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
list_visuals.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
makedepend Update dependencies. 2007-02-10 14:31:12 +00:00
Makefile Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
makefile.wat Fix eol-style in Watcom files... 2005-05-19 16:07:13 +00:00
mandelbrot_ui.fl Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
mandelbrot.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
mandelbrot.h Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
menubar.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
message.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
minimum.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
navigation.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
output.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
overlay.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
pack.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
pixmap_browser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
pixmap.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
preferences.fl Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374). 2006-08-21 15:03:02 +00:00
radio.fl Sorted buttons order as they appear in fluid, changed the 'same shortcuts A1 and A2 as it is more confusing than helping in finding bugs for this test case. 2008-12-16 20:11:04 +00:00
README Added common heading and footer to all source files. 1998-10-20 13:25:25 +00:00
resize.fl made the window its own resizable() for better resize testing 2008-09-02 21:42:36 +00:00
resizebox.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
rgb.txt Added the standard rgb.txt file from X11 to the test directory, 2005-05-12 20:03:59 +00:00
scroll.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
shape.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
subwindow.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
sudoku.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
sudoku.ico Add missing icon for sudoku 2005-11-29 22:03:39 +00:00
sudoku.rc VC++ 2005 Support, drop old files, add icons for Sudoku 2005-11-27 14:45:48 +00:00
sudokurc.h Fixed shortcut and default focus for message dialogs (STR #1298). 2006-05-30 09:38:19 +00:00
symbols.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
tabs.fl STR #1652: allowing shortcuts in tabs 2007-05-01 20:20:21 +00:00
threads.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
threads.h STR#2035 fix : Changed all 1998-200[0-8] dates to 1998-2009 for supported fltk files (this excludes i.e the png subdir). 2009-01-12 14:52:45 +00:00
tile.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
tiled_image.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
trackball.c Initial revision 1998-10-06 18:21:25 +00:00
trackball.h Initial revision 1998-10-06 18:21:25 +00:00
unittest_about.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_circles.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_images.cxx Fixed gray scale w/alpha image drawing for Mac OS with Quartz (FLTK 1.1 2009-04-21 09:25:22 +00:00
unittest_lines.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_points.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_rects.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_text.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_viewport.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittests.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
utf8.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
valuators.fl Fixed modified .fl file. 2007-01-18 10:41:27 +00:00

test/README - 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