summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-08-15Sudoku into smaller pieces.Matthias Melcher
2023-08-15Random testing and fixing.Matthias Melcher
2023-08-15Removed unused codeMatthias Melcher
2023-08-15Adding generatorMatthias Melcher
2023-08-15Improved, yet compatible, widget callback system using macros (#729)Matthias Melcher
* adds FL/fl_callback.macros.H * adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data]) * adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data]) * adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body) * adds `examples/callback` * full documentation
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-08-05Revert "#733 partial: Adds rotation gesture event on MacOS"Albrecht Schlosser
This reverts commit 3049e6394a3376f7fff1c8cde19fd7bb1a9252ec as agreed upon in GitHub Issue #733.
2023-08-05#733 partial: Adds rotation gesture event on MacOSMatthias Melcher
2023-07-19Fix missing (new) source file in fluid and dependenciesAlbrecht Schlosser
New file: Fl_Button_Type.cxx
2023-07-19FLUID: RTTI improvements, 'is_a90' now const, apply RTTIMatthias Melcher
2023-07-14FLUID: fixes all overlapping widgets in all .fl filesMatthias Melcher
Also fixes an issue with multiple use of the same variable for different types of i18n.
2023-07-12Display mouse button state in test/handle_events.cxx demoAlbrecht Schlosser
See fltk.general, thread "Is handling simultaneous Left-click and Right-click drags supported?" from Jul 12, 2023 Status: FL_DRAG operation is terminated when one mouse button is released, even if more than one button is actually down. Subsequent mouse movement is reported as FL_MOVE rather than FL_DRAG, this is under investigation.
2023-05-10Fix "Provide --without-fluid configure option" - cont'd (#725)ManoloFLTK
2023-05-09Fix "Provide --without-fluid configure option " (#725)ManoloFLTK
Add new --disable-fluid configure option.
2023-05-08Fix some but not all memory leaks in test/utf8 demoAlbrecht Schlosser
Note: Fl_Input::value() copies the string to an internal buffer, fl_strdup() before value() is not necessary.
2023-04-14test/utf8: improve use of Fl::set_fonts(const char *) across platformsManoloFLTK
2023-04-13Fix more compiler warnings (comma at end of enum)Albrecht Schlosser
These warnings are benign but ... I fixed them nevertheless.
2023-04-08Add usage example of Fl_Window::cursor(const Fl_RGB_Image *, int, int)ManoloFLTK
2023-03-22Fix test/demo for X11 on macOS (e.g. XQuartz)Albrecht Schlosser
This modification became necessary since "__APPLE__" is no longer undefined by the build system when X11 is used on macOS.
2023-03-18Fix and update alignment #346 (#701)Matthias Melcher
* interactive layout alignment rewritten * interface for new alignment rules * new alignment dialog box * user defined layout rules added * layout rules can be stored in projects, settings, and external files * Valgrind verification
2023-03-14Cairo: introduce Fl::cairo_flush() in FLTK APIAlbrecht Schlosser
Flushing the Cairo context is necessary on Windows to make Cairo drawings appear on the device (screen). This new method makes it easy for user code to do this correctly after using Cairo drawings. - add Fl::cairo_flush(cairo_t *) - document Fl::cairo_flush(cairo_t *) - reformat Cairo doxygen docs and code (partially) - use the new method in Fl_Cairo_Window - use the new method in test/cairo_test.cxx - other minor (text) changes in test/cairo_test.cxx - add test/cairo_test to the demo menu (test/demo.menu)
2023-03-12Simplify the previous Cairo drawing fix (#694)Albrecht Schlosser
The Cairo context 'cc' should be used directly rather than calling 'Fl::cairo_cc()' again. Sorry for the noise.
2023-03-12Fix Cairo drawing in test/cairo_test demo for Windows (#694)Albrecht Schlosser
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-09Fix dependencies, typos, trailing whitespace, and formattingAlbrecht Schlosser
No code changes.
2023-03-09CMake: build shared libs with OPTION_CAIROEXT (issue #250)Albrecht Schlosser
- remove separate libfltk_cairo to avoid cyclic dependencies, but - keep a dummy libfltk_cairo in 1.4.0 for backwards compatibility - move cairo/Fl_Cairo.cxx to src/Fl_Cairo.cxx - add preliminary Cairo support for Visual Studio (MSVC) Static linking is not affected by this change, but users building with hand-made Makefiles will have to remove libfltk_cairo starting with FLTK 1.4.0. The dummy library can be linked for backwards compatibility but it will be removed later (in 1.4.x or 1.5.0). The shared FLTK library libfltk.{so|dylib|dll|..} depends on libcairo if and only if FLTK is built with one of the Cairo options. This has always been the case for OPTION_CAIROEXT but is now also true if only OPTION_CAIRO is selected, i.e. FLTK programs linked with a Cairo enabled shared FLTK library will also be linked with libcairo. The same is true for configure options --enable-cairo and --enable-cairoext, respectively. Preliminary Cairo support for MSVC now detects a Cairo installation using the CMake variable FLTK_CAIRO_DIR which must be set by the user. Note that this feature is temporary and may be changed in the future for a better and more comfortable version.
2023-02-25Add Fl_String to Fl_Preferences (#687)Matthias Melcher
2023-02-23Move animated gif images to the test/images folderAlbrecht Schlosser
... to make them accessible to the help_dialog test if built with CMake.
2023-02-23Fl_String refactoring and extension (#683)Matthias Melcher
- add true unittest and Fl_String testing - interface and printout are similar to gtest without requiring external linkage. just run `unittest --core`. - new Fl_String API - extended API to fl_input_str and fl_password_str - co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2023-02-07Avoid "#undef __APPLE__" preprocessor directiveManoloFLTK
2023-02-02Fix position() methods that shadow Fl_Widget::position()Matthias Melcher
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
2023-02-02Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__ManoloFLTK
2023-02-02Update dependencies and fix whitespace errorsAlbrecht Schlosser
- replace tabs with spaces - remove trailing whitespace
2023-01-26Fixing FLUID file corruption from issue #653 (#662)Matthias Melcher
Removing all globals in file writer (#653 ) Fix some static analyser complaints Valgrind: handle width==0 in GfxDrivers on Wayland and X11 Don't use `Fl_Input_::static_value`, it accesses previous buffer that may be deleted Project file write encapsulated, removing globals Encapsulating project file reader, removing states in glbals Project i/o increased source code readability
2023-01-21Animated GIF support (Fl_Anim_GIF_Image class) (#375)wcout
2023-01-21Move global FLTK options into new app fltk-admin (#560)Matthias Melcher
2023-01-15Fix memory leak warnings by "binding" imagesAlbrecht Schlosser
Although the memory "leak" is not really an issue in this demo program (memory is returned anyway), "fixing" the leak warning issued by valgrind and address sanitizer demonstrates the new feature to "bind" images.
2023-01-14Add necessary initialisation in test/mandelbrotManoloFLTK
Detected by valgrind : ==16102== Conditional jump or move depends on uninitialised value(s) ==16102== at 0x449A10: Drawing_Area::idle() (mandelbrot.cxx:143)
2023-01-12Add Fl_Scheme_Choice widget and use it in test programsAlbrecht Schlosser
This widget offers the selection of all known FLTK schemes as a simple widget based on Fl_Choice. Some test and demo programs use Fl_Scheme_Choice to enable the developer or user to switch schemes quickly for comparison. Todo: - add features to add new schemes during runtime (partially done) - update status when the scheme is changed by Fl::scheme("...")
2023-01-10Fix new warnings in CIMatthias Melcher
2023-01-10Fix compiler warning in test/tabsMatthias Melcher
2023-01-05Add Fl_Tabs dragging in pulldown modeMatthias Melcher
2023-01-05Adding color to test/mandelbrot (#634)Matthias Melcher
2023-01-05Add close buttons for individual tabs in Fl_Tabs (#628)Matthias Melcher
Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features
2022-12-30FLUID support for inline image data (see #542, #592) (#604)Matthias Melcher
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-12-28Improve and extend fl_contrast() (#370)Albrecht Schlosser
- Add internal fl_contrast_cielab() as the new default. - Keep old function as internal fl_contrast_legacy(). - Add fl_contrast_mode() to switch between fl_contrast() functions. - Add fl_contrast_level() to fine tune fl_contrast() per mode. - Add option to register and use a custom contrast function. - Add test/contrast.cxx test program. - Move all fl_contrast() related code to a new file src/fl_contrast.cxx. - Add fl_lightness() convenience function for perceived lightness. - Add fl_luminance() convenience function for physical luminance.
2022-12-28Fix merge error in animated.cxx (sorry for the noise)Albrecht Schlosser
2022-12-28Replace an enum with 'const' variables in test/animated.cxxAlbrecht Schlosser
- replace enum value 'FRAMES' with 'const unsigned int frames' - replace enum value 'DIM' with 'const unsigned int dim' - remove commented statements that have never been used. Note: this also changes uppercase enum values to lowercase constants.
2022-12-28 Fix compiler warnings on Windows with mingw-w64 CMAKE_CXX_STANDARD=20 (#615)ManoloFLTK
2022-12-17Make unittest conform to CMP (#597)Matthias Melcher
Update unittest README