summaryrefslogtreecommitdiff
path: root/FL
AgeCommit message (Collapse)Author
2021-12-09Remove compiler warnings about unused parameters (issue #307)ManoloFLTK
2021-12-08Solves issue #308.Greg Ercolano
2021-12-08Improve Fl_Scroll docs regarding its bounding boxAlbrecht Schlosser
Make clear that outside labels of widgets are not considered when calculating the bounding box of the children (scroll area) and include a hint to add an invisible box if necessary.
2021-12-07Fix for issue #278: Can we use the qt/kde file picker instead of gtk?ManoloFLTK
Under the X11 platform, class Fl_Native_File_Chooser will behave as follows : - if the KDE desktop is used and if command "kdialog" is available in the path, the Qt/KDE file chooser is used; - otherwise, if the GTK library is available at run-time, the GTK file chooser is used; - otherwise, the FLTK file chooser is used. In addition, when Fl::OPTION_FNFC_USES_GTK is off, the FLTK file chooser is always used.
2021-12-06Fix Fl_Window::size_range() documentation (STR 3352)Albrecht Schlosser
"Tiny window problem if child group larger than window" See Greg's comment 4: "something is wrong here: either the logic or the docs are incorrect, not sure which." It turned out that both were incorrect. Since we fixed the code this commit completes the STR by fixing the docs as well so they match the behavior.
2021-12-04Add fl_message_icon_label() function (STR #2762)Albrecht Schlosser
This message icon label (usually one character) will be used in the next call of one of the common dialogs. test/ask.cxx: use fl_message_icon_label()
2021-12-04Rename FL/Fl_String.H to FL/Fl_String_class.HAlbrecht Schlosser
The previous name existed already with different case (fl_string.h) in the FL folder which broke the build on macOS and Windows. This may be a temporary fix - until I find a better way.
2021-12-04Re-enable nested (aka recursive) common dialogs (STR 3242, #282)Albrecht Schlosser
Apply Fl_Dialog_r10831.patch as given in STR 3242: https://www.fltk.org/strfiles/3242/Fl_Dialog_r10831.patch Reformat, add missing pieces, rename private members, cleanup... Improve documentation, add fl_choice_n() (issue #282) New methods fl_input_str() and fl_password_str() return Fl_String
2021-12-04Add minimal version of class Fl_StringAlbrecht Schlosser
This class will be used in fl_input_str() and fl_password_str(). Todo: add missing documentation ...
2021-11-26Fix for issue #254: remove hardware overlay support .ManoloFLTK
2021-11-26Fix for issue #253: Remove xdbe supportManoloFLTK
2021-11-16Add use of fl_capture_window() by test/deviceManoloFLTK
Also, rename fl_capture_window_part() to fl_capture_window().
2021-11-16Add rectangle drawing functions with Fl_RectAlbrecht Schlosser
2021-11-16Reformat to FLTK style, improve documentationAlbrecht Schlosser
No code changes. Replace '#define fl_clip ..' with an inline method.
2021-11-15Add fl_draw_check() to draw better check marks (issue #68)Albrecht Schlosser
This new function can and should be used to draw check marks in widgets that need it, e.g. Fl_Check_Browser (issue #68) and Fl_Check_Button.
2021-11-11Support all image depths (1-4) in fl_write_png()Albrecht Schlosser
2021-11-09Refactor fluid: make fl_write_png() publicAlbrecht Schlosser
The new function fl_write_png() was moved to its own file and is now publicly available ("exported") so other programs can use it. This function was used in fluid to write a window screenshot (.png) together with a template (.fl) to preferences storage.
2021-10-31Consistently make Fl_Paged_Device::begin_page call ↵ManoloFLTK
Fl_Surface_Device::push_current.
2021-10-31Add documentation of Fl_Surface_Device::end_current().ManoloFLTK
2021-10-17Documentation updates (formatting)Albrecht Schlosser
no code changes
2021-10-17Avoid multiple definition of macro __fl_attr()Albrecht Schlosser
This could happen if both FL/fl_ask.H and fluid/Fl_Type.h were included in the same file.
2021-10-06Simplify and fix the code of Fl_Scroll::bbox()Albrecht Schlosser
Declare Fl_Scroll::bbox() and Fl_Scroll::recalc_scrollbars() 'const'. These methods don't change the Fl_Scroll widget. Use Fl_Scroll::recalc_scrollbars() in Fl_Scroll::bbox() to simplify the code and to avoid code duplication. bbox() can now be called at any time and returns the correct values, no matter if draw() has been called before.
2021-10-02Separate Fl_GIF_Image constructors with and w/o length argAlbrecht Schlosser
Document clearly that reading from memory w/o the length argument (old constructor) is discouraged (deprecated).
2021-09-27Add error checking and improve constructor of Fl_BMP_ImageAlbrecht Schlosser
- use new features of Fl_Image_Reader (read error and EOF checks) - add length argument to constructor reading from memory
2021-09-27Fix and improve Fl_GIF_Image (issue #271, #274)Albrecht Schlosser
- add error and EOF checks - fix transparent pixel index outside ColorMap (#271) - fix Fl_GIF_Image decoder bug (#274) - add Fl_Image_Reader::skip(unsigned int) - use new skip() method in GIF reader
2021-09-09Improve documentation of Fl_Image (Issue #272)Albrecht Schlosser
Try to explain what count() returns and what data() contains which can be different by image type.
2021-08-31Fix MSVC compiler warnings in test/icon.cxx (#109)Albrecht Schlosser
Also: - remove unnecessary 'size_t' conversions from FL/fl_casts.H - add reverse conversions from integer types to 'void *'
2021-08-30Fix Windows (VS) compiler warnings in fluidAlbrecht Schlosser
2021-08-30Add experimental FL/fl_casts.H (issue #109)Albrecht Schlosser
2021-08-30Remove unused declaration of Fl_CharAlbrecht Schlosser
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-08-27Remove an extra semicolontetsuhaut
One less warning, yay !
2021-05-31Windows platform: use GDI+ to antialias oblique lines and curves.ManoloFLTK
2021-05-28New virtual member function Fl_Graphics_Driver::colored_rectf().ManoloFLTK
2021-05-25Reimplement Fl_Group::delete_child(int) for Fl_ScrollAlbrecht Schlosser
2021-05-25Add virtual int Fl_Group::delete_child(int n) (STR 3218)Albrecht Schlosser
This is a convenience method that does range checking (index n), removes the child given by index n from the group and deletes it.
2021-05-03Fix compiler warningAlbrecht Schlosser
Apple clang version 12.0.5 (clang-1205.0.22.9) Target: arm64-apple-darwin20.4.0 Warning appeared after upgrade to Xcode 12.5 in several files, example: In file included from Fl_Scroll.cxx:19: ../FL/Fl_Scroll.H:102:17: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] typedef struct { ^ ScrollInfo ../FL/Fl_Scroll.H:104:5: note: type is not C-compatible due to this member declaration typedef struct { int x,y,w,h; } Fl_Region_XYWH; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../FL/Fl_Scroll.H:128:5: note: type is given name 'ScrollInfo' for linkage purposes by this typedef declaration } ScrollInfo; ^
2021-05-02Fix a type (comment only)Albrecht Schlosser
2021-04-29Cleaner access to Fl_Gl_Window_Driver objects.ManoloFLTK
2021-04-28Fix "Fl_Shared_Image: use of unitialized data" (#216)Albrecht Schlosser
- fix issue as proposed - fix more potential access to uninitialized data issues - document Fl_Shared_Image::add_handler() - document typedef Fl_Shared_Image::Fl_Shared_Handler()
2021-04-07Make Fl_Input::handle_key() protected (#203)Albrecht Schlosser
... as requested in this comment: https://github.com/fltk/fltk/issues/211#issuecomment-814235771
2021-03-26Remove X11-specific code from platform-independent Fl_PostScript.cxxManoloFLTK
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-03-11Unification of scaled coordinate calculations in class ↵ManoloFLTK
Fl_Scalable_Graphics_Driver Most coordinate calculations are done with the new inline function int Fl_Scalable_Graphics_Driver::floor(int coord) that is used by both the Windows and X11 platforms.
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver - cont'd.ManoloFLTK
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver.ManoloFLTK
2021-03-01Remove warnings about hidden virtual member functions.ManoloFLTK
2021-02-27Remove config_lib.h and runtime configuration infoAlbrecht Schlosser
... as discussed in fltk.coredev.
2021-02-27Rename forgotten occurrence of fl_remove_scale() in Doxygen data.ManoloFLTK
2021-02-27Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.generalManoloFLTK
Re: Can custom box type functions handle their own high-DPI screen scaling?