summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-01CMake: Fix image libraries build if fallback is usedAlbrecht Schlosser
The CMake instructions would use the wrong image libs (png, jpeg, zlib) if the fallback was active (OPTION_USE_SYSTEM_XXX) was true but the header files were not present. This had already been fixed for jpeg but not for the other two libs. This commit rearranges the logic for all three libs. Add information about builtin or system libraries to config summary.
2022-01-31Consolidate timeout handling across platforms (#379)Albrecht Schlosser
Add Fl_Timeout class Move platform independent code of Fl::wait() to main part - basic timeout handling - Fl::run_checks() - Fl::run_idle() - Fl::idle() - waiting time calculation (next timeout) - remove platform dependent "screen driver" stuff
2022-01-30Adding Text_Display color variables. (#384)Matthias Melcher
2022-01-29More natural shading for Checkers pieces.Matthias Melcher
2022-01-28Checkers pieces scaling.Matthias Melcher
2022-01-28New Checkers pieces created by me from scratch.Matthias Melcher
Remove possible licensing issues. Added vector file.
2022-01-28Remove obsolete image file (#31)Albrecht Schlosser
The checkers pieces are now maintained as .png images, the original (Gimp) image is obsolete.
2022-01-27Background color attribute for Fl_Text_Display. (#378)Matthias Melcher
* Background color attribute for Fl_Text_Display. * Adding attributes. * Avoid clipping horizontal * Fl_Text_Display underlining. * Better line positions * Typos, testing. * Documentation.
2022-01-26#31, HiDPI checkers, animation timingMatthias Melcher
2022-01-26Removed GL Button from test/cubeMatthias Melcher
2022-01-26Fix for #381, `backward` function crashMatthias Melcher
when no menu item is selected.
2022-01-23Preferences XDG path (#377)Matthias Melcher
* Preferences: remove CamelCase from public interface. * Prefs: documentation. * Prefs: updating Doxygen comments * XDG conforming preferences path
2022-01-23Remove experimental platforms Android, Pico, SDL (PR #376)Albrecht Schlosser
... as discussed in fltk.coredev: "FLTK 1.4.0 release schedule" https://groups.google.com/g/fltkcoredev/c/PDbHTRpXVh0/m/JqboexZ_AwAJ
2022-01-23Fix for fltk when make install usedGreg Ercolano
2022-01-21Fix compiler warnings [-Wunused-variable]Albrecht Schlosser
... and missing return value [-Wreturn-type]
2022-01-19Fixing and upgrading Fl_Preferences (#374)Matthias Melcher
* Added filename function to Fl_Preferences Static function to get filename before opening. Member to get filename after opening. Bug fixes for memory mapped preferences. * ERROR is a macro on Windows, don't use it * Added Fl_Preferences::dirty(). User can now check if the database will be written when flushed or destroyed. Flush returns a crude error code. * Fl_Preferences::get binary data returns # of bytes read. * Verified group deletion code * Fl_Preferences ignores locale. This will make .prefs files interchangeable between different computers. * Updating the Preferences Mode to ignore locale. * Fixes in docs.
2022-01-19Remove potential compiler error with -Wc++11-narrowingManoloFLTK
2022-01-17Comment out deprecated Doxygen tag COLS_IN_ALPHA_INDEX.ManoloFLTK
2022-01-17Remove unnecessary CMake test statement (#358)Albrecht Schlosser
Sorry for the noise, this statement was included in my proposed patch.
2022-01-16Issue #358 cont'd: Fl_Cairo_Window coord system docsGreg Ercolano
Elaborated on Fl_Cairo_Window's use of FLTK style coordinates, and how this differs from cairo's default native normalized coordinate system, and shows how to switch from one to the other. Also, small comment fix to the cairo example regarding the "X" color.
2022-01-16Adding Albrecht's CMakeLists.txt patchGreg Ercolano
Albrecht submitted this in issue 358. Tested the variations: cmake .. -- examples and cairo off cmake -D FLTK_BUILD_EXAMPLES=on -- examples on, cairo off cmake -D FLTK_BUILD_EXAMPLES=on -D OPTION_CAIRO=on .. -- examples on, cairo on When examples are 'on', they build into the bin/examples directory.
2022-01-16For issue #358 - adds examples/cairo-draw-x.cxxGreg Ercolano
Since this is the first cairo example in the examples directory, it necessarily involved changes to the Makefile and to fltk-config to properly handle the absence/existance of the cairo libs. TBD: Add docs to the cario widget describing coordinate system and how it differs from the default cairo normalized coordinate system.
2022-01-16Update fluid files and generated filesAlbrecht Schlosser
fluid/widget_panel.cxx: apply previous fluid fix
2022-01-16Rename FL/Fl_String_class.H to FL/Fl_String.HAlbrecht Schlosser
This is part 2 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-16Improve Fl_GTK_Native_File_Chooser_Driver in relation to FLTK windows.ManoloFLTK
Implement a new way to make the GTK file-chooser window modal-like by preventing any event processing by other FLTK windows. The new way is also no longer X11-specific.
2022-01-16Improve kdialog-based native file chooser.ManoloFLTK
Processing of all FLTK events as well as window resizing while the file chooser runs is suspended, Normal event processing and resizing is restored when chooser closes.
2022-01-14Move make_transient() to Fl_Posix_System_Driver from Fl_Screen_DriverManoloFLTK
2022-01-14Improve focus box drawing and documentationAlbrecht Schlosser
Add new method Fl_Widget::draw_focus(Fl_Boxtype t, int x, int y, int w, int h, Fl_Color bg) ... with background color for correct contrast testing (in Fl_Tabs) Draw the focus box of the "tabs" of Fl_Tabs widgets with the correct boxtype and background color. Make 'unsigned int visible_focus()' const so it can be used in 'const' methods. Do not draw the focus box if the per-widget focus box option is off.
2022-01-13Fixes #369Greg Ercolano
2022-01-13Fixes #362Greg Ercolano
2022-01-13Fixes issue #361.Greg Ercolano
2022-01-13Fix typo in Fl_Menu_Item docsAlbrecht Schlosser
2022-01-12Renewing old code, as suggested by Albrecht.Matthias Melcher
2022-01-11Reintroducing delet o;Matthias Melcher
2022-01-11Fluid: Window was not updated when widget was deleted.Matthias Melcher
For parents with a box type based on FRAME.
2022-01-11Avoiding CodeQL warning.Matthias Melcher
Changed a statement emitted by Fluid to avoid 'unused' warnings: if(w){} into (void)w; to avoid triggering 'Bad error checking' warnings.
2022-01-08avoid early include of Fl.H optionMatthias Melcher
2022-01-08Input Method support: have the auxiliary window follow when the focus window ↵ManoloFLTK
is moved.
2022-01-08Remove obsolete (dead) code from Fl_Group.cxxAlbrecht Schlosser
This code had been inactive at least since Mar 29, 2018.
2022-01-07Fixed a crash bug in Fluid where partial menus were deleted.Matthias Melcher
Reading an .fl file rebuilds a menu item arrays with every item read. If a menu is only partially read, the end marker (label==NULL) is not set, so that deleting the menu will run beyond the missing marker. This bug was exposed by adding images to menu items, which requires additional deletes.
2022-01-07Re-organize cross-platform support for text input methods.ManoloFLTK
FLTK 1.3 supports complex text input methods (TIMs) for the 3 platforms (X11, Windows, macOS). This support has an interface with FLTK that is common for X11 and Windows, via (undocumented) functions fl_set_spot(), fl_set_status() and fl_reset_spot(). In contrast, and because it's been developed independently, the interface between the macOS TIM and FLTK 1.3 is completely different : static functions FL::insertion_point_location() and Fl::reset_marked_text(). The present change implements a single TIM/FLTK interface used by all platforms based on functions fl_set_spot() and fl_reset_spot(). The previous macOS-specific functions FL::insertion_point_location() and Fl::reset_marked_text() are maintained only for compatibility with 1.3 and deprecated.
2022-01-07Add virtual void Fl_Graphics_Driver::set_status() and implement for X11 ↵ManoloFLTK
platform.
2022-01-05Fix whitespace and Makefile dependenciesAlbrecht Schlosser
No code changes
2022-01-05Create FL/x11.H holding declarations specific to X11 platform.ManoloFLTK
2022-01-04Introduction of FL/fl_config.h - continuedManoloFLTK
2022-01-04Fix build error with CMake when libjpeg???-dev package is absent from the ↵ManoloFLTK
system (Linux). The error was visible under Linux if OPTION_USE_SYSTEM_LIBJPEG and OPTION_BUILD_SHARED_LIBS are on.
2022-01-02Text input method for X11: fix for case when text widget is inside subwindow.ManoloFLTK
2022-01-01Tweak blocks game to use higher update rates and slightly larger window.Michael R Sweet
2022-01-01Installing Fluid correctly on macOSMatthias Melcher