summaryrefslogtreecommitdiff
path: root/FL
AgeCommit message (Collapse)Author
2023-04-13Fix compiler warning if user code is compiled with '-Wextra' (2)Albrecht Schlosser
Replace '(void*)' cast with '(fl_intptr_t)' because older gcc (4.8.2) issues a warning with '(void*)'.
2023-04-13Standardize API to "graphics context" across platformsManoloFLTK
Rename fl_wl_cairo() to fl_wl_gc() Add function cairo_t* fl_cairo_gc() under OPTION_USE_CAIRO
2023-04-11Add public accessor methods Fl_Widget::needs_keyboard()Albrecht Schlosser
- add public getter and setter for - document the new methods - document that these methods are not yet used internally - remove unnecessary friend declaration 'NEEDS_KEYBOARD' flag - simplify Fl::focus(Fl_Widget *) using the new methods.
2023-04-11Fix compiler warning if user code is compiled with '-Wextra'Albrecht Schlosser
This commit fixes two similar warnings: "cast between incompatible function types from ‘void (*)(Fl_Widget*)’ to ‘void (*)(Fl_Widget*, void*)’ [-Wcast-function-type]"
2023-03-25More accurate documentation of function fl_wl_cairo()ManoloFLTK
2023-03-23Improve Fl_Cairo_Window documentation (typos + indentation)Albrecht Schlosser
Also fix a doxygen warning in Fl_String.
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-15Protect GL_SILENCE_DEPRECATION from re-definition.Rob McDonald
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-13Wayland: add support for multiple high or low DPI displaysManoloFLTK
2023-03-09Fix dependencies, typos, trailing whitespace, and formattingAlbrecht Schlosser
No code changes.
2023-03-09Remove Doxygen warning about incorrect #include directiveManoloFLTK
2023-03-09Remove warnings when fl_attr.h is compiled in CManoloFLTK
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-03-01Fix regression: failed to build shared FLTK libsAlbrecht Schlosser
Add FL_EXPORT to some classes to make building shared libs possible. Building shared libs and 'fluid-shared' missed global symbols.
2023-02-25Add Fl_String to Fl_Preferences (#687)Matthias Melcher
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-20Add GLUT_ELAPSED_TIME simulationMatthias Melcher
2023-02-15Move class Fl_Shortcut_Button from FLUID to core (#677) (#680)Matthias Melcher
2023-02-10Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer (#558) (#676)Matthias Melcher
2023-02-10Deprecated warnings wording adaptedMatthias Melcher
2023-02-10Fixes FL_DEPRECATED for Fl_Text_Buffer.hMatthias Melcher
2023-02-10Fix typos in documentation and commentsAlbrecht Schlosser
(no code changes)
2023-02-09Expose elapsed time API (#670)Matthias Melcher
2023-02-06Document MSVC macro _MSVC_LANG for future use in fl_attr.hAlbrecht Schlosser
This macro defines the C++ standard used by the compiler since Visual Studio 2015 Update 3.
2023-02-06Fix "\todo Description of box types is incomplete" from Enumerations.HManoloFLTK
2023-02-06Fix "\todo Add a flag to ignore case" from Fl_Browser_.cxxManoloFLTK
2023-02-06Fix "\todo provide user documentation for fl_set_status function"ManoloFLTK
2023-02-06Fix "\todo Complete documentation of class Fl_String"ManoloFLTK
Also - fix "\todo Unicode?" in Fl_Text_Display::display_insert() after verification - fix "\todo [Internal] The user_data value must be implemented using \p fl_intptr_t" because that's now in place.
2023-02-06Fix "\todo FL_Button and FL_key... constants could be structured better"ManoloFLTK
2023-02-06Use correct Doxygen syntax for "member groups"ManoloFLTK
2023-02-05Remove a bunch of \todo items from documentationManoloFLTK
2023-02-05Better document Fl_Window::show(int, char**)ManoloFLTK
This removes one \todo.
2023-02-05Doxygen fix for FL_DEPRECATEDMatthias Melcher
2023-02-04Improve documentation of the Fl_Cursor enumerationManoloFLTK
2023-02-02Missing include for FL_DEPRECATEDMatthias Melcher
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-02Fix documentation of FL/Fl_Box.HAlbrecht Schlosser
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-02-02Minimize and fix include statements of Fl_Int_VectorAlbrecht Schlosser
- replace <FL/Fl.H> with <FL/Fl_Export.H> in public header - add missing <string.h> in implementation
2023-01-24Remove warnings when building doc with DoxygenManoloFLTK
2023-01-23STR 2639 Fixes Fl_Pack resize behaviourMatthias Melcher
FLUID cleanups FLUID Fl_Pack support improvement FLUID fix error in handling live mode resizables
2023-01-21Animated GIF support (Fl_Anim_GIF_Image class) (#375)wcout
2023-01-20No default values in plain CMatthias Melcher
2023-01-20STR 2822: function to count bytes in a UTF-8 stringMatthias Melcher
2023-01-20STR 2894: pressed_menubutton_ now protected in Fl_Menu_ButtonMatthias Melcher
2023-01-20STR 2658: documentation fixes on Fl::set_fontsMatthias Melcher
2023-01-15Improve deriving from Fl_Chart (STR 2022)Albrecht Schlosser
This commit makes the local, static drawing functions in the source file available for subclasses by converting them to static protected methods as requested by STR 2022. The source and header files have been reformatted according to the CMP, documentation for the new protected methods was added. Source code *functionality* has not been changed. This resolves and closes STR 2022. Todo: - investigate whether these drawing methods wouldn't better be member functions and "convert" them if applicable - investigate whether the internal struct FL_CHART_ENTRY could become a local part of the Fl_Chart class, maybe Fl_Chart::Entry. - rename private member variables with trailing underscore (see CMP)
2023-01-15Have files fl_attr.h and names.h visible by DoxygenManoloFLTK
For some reason, the \file Doxygen command is absolutely required.