summaryrefslogtreecommitdiff
path: root/FL
AgeCommit message (Collapse)Author
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-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 #362Greg Ercolano
2022-01-13Fixes issue #361.Greg Ercolano
2022-01-13Fix typo in Fl_Menu_Item docsAlbrecht Schlosser
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
2021-12-18Generate FL/fl_config.h rather than FL/abi-version.hAlbrecht Schlosser
... as discussed in fltk.coredev in thread "RFC: introduce public config header <FL/fl_config.h>", see: https://groups.google.com/g/fltkcoredev/c/xLCs1AIXMVo/m/MHZpQggzAQAJ - Rename abi-version.h to fl_config.h, rename input files, update dependencies, .gitignore, CMake, configure and Makefiles. - Include Cairo options in FL/fl_config.h - Rename FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT for consistency. - Include <FL/fl_config.h> in config.h and wherever necessary, fix include order (move FL/Fl.H to the top) and more. - Move USE_X11 to fl_config.h and rename to FLTK_USE_X11 - Do not include <config.h> in Cairo demo program which is no longer required in Cairo programs since FLTK 1.4.0
2021-12-17Github #237: scrollbar.align documentation.Matthias Melcher
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; ^