summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
AgeCommit message (Collapse)Author
2025-11-16Refactor large static class Fl into an expandable namespace Fl (#1325)Matthias Melcher
* Change class Fl into namespace Fl. * Untangle Fl namespace into themed headers. * cut line count of FL/Fl.H in half * FL/core subdirectory now holds short headers grouped by functionality.
2025-11-10Declare some methods of Fl_Window 'const'Albrecht Schlosser
These Fl_Window methods are 'const' but had not been declared 'const': - uchar get_size_range(...) const - int shown() const - const Fl_Image *shape() const - int screen_num() const - fl_uintptr_t os_id() const
2024-11-17Finish release 1.4.0Albrecht Schlosser
1) Improve and clarify documentation: - update, reformat, and reorder parts of CREDITS.txt - make sure that documentation appears in doxygen docs - add '\since 1.4.0' to documentation of new methods and functions - remove doxygen's '\brief' where not required (we're using JAVADOC_AUTOBRIEF = YES) - clarify screen scaling, scaling factor, and related stuff - add more info about backwards compatibility for X11 specific code 2) Update dependencies
2024-11-01Wayland: Fix issue in maximization of a borderless window (#1099)ManoloFLTK
Also fixes scenarios mixing fullscreen and maximization: - maximize - set fullscreen - unset fullscreen - un-maximize with and without window border.
2024-08-27Adding horiizonatl and vertical label marginMatthias Melcher
- sizeof(Fl_Widget) not increased - label positions can be adjusted - try it out in test/label app - full support in FLUD
2024-08-14Adding Fl_Widget::label_image_spacing() (#1039)Matthias Melcher
- May need a better method name. - This makes the gap between the image in a label and the label text user settable. - Can be tested using test/label app
2024-06-02 Fix Child Windows under Wayland are clipped on resizing … (#987)ManoloFLTK
2024-05-26Adding new call `Fl_Window::get_size_range()`, #981Matthias Melcher
2024-04-29Fix potential NULL pointer dereferenceAlbrecht Schlosser
... as reported in thread "Windows 11 crash (still investigating)" of fltk.coredev, started on Apr 24, 2024. This bug could only be triggered if a /subwindow/ wss hidden but was not limited to Windows.
2024-03-03A window needs is_resizable() true to obey fullscreen() or maximize()ManoloFLTK
2024-02-07Fix Fl_Window::default_size_range() (#901)Albrecht Schlosser
Thanks to Manolo for the patch.
2023-11-17Remove friend declaration from Fl_Window.H (see STR 3354)Albrecht Schlosser
Although this was not strictly necessary I decided to implement the proposed patch, but in a slightly different way. This adds a static public method for internal use only but it wouldn't do any harm if a user called it.
2023-11-14Fix dependencies and whitespace issuesAlbrecht Schlosser
2023-11-05Add Fl_Window::maximize() and Fl_Window::un_maximize()ManoloFLTK
2023-09-29Draw parent window backdrop on Fl_Tabs (#718)Matthias Melcher
2023-06-28Clarify documentation of Fl_Window::size_range()Albrecht Schlosser
Document typical (recommended) usage and platform specific behavior.
2023-01-13Fix for "Rename Fl_X* Fl_Window::i private class member" (#223)ManoloFLTK
2022-10-06Update window icon-related doc in platform-specific section.ManoloFLTK
2022-08-29Make hybrid Wayland/X11 platform.ManoloFLTK
2022-04-15Document how to set window icons under Wayland - cont'd.ManoloFLTK
2022-04-12Modify test/cairo_test.cxx to show roles of OPTION_CAIRO and OPTION_CAIROEXT.ManoloFLTK
Also make clear that these options require, for now, Fl_Double_Window to work cross-platform.
2022-03-21Fix MSVC 2010 warning: using 'this' in initializer listAlbrecht Schlosser
This is a legitimate warning although it probably didn't do any harm.
2022-03-21Issue #359 RFE: access the MacOS windowid .ManoloFLTK
2022-03-01Fix default size_range() calculation (issue #392, STR 3352)Albrecht Schlosser
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).
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-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-11-26Fixes #297 - improvements for icon.cxx + icon() docsGreg Ercolano
2021-02-10Fix potential NULL pointer dereferenceAlbrecht Schlosser
2020-08-14Add Fl_Window::screen_num(int) to fully control window locationManoloFLTK
on multi-screen systems having distinct per-screen scaling factors.
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-05-08Replace Fl_Window_Driver::is_a_rescale() by Fl_Window::is_a_rescale()ManoloFLTK
so it can be called by any user code.
2020-03-03Fix for STR#3534 to draw correctly Fl_Tiled_Image's on non-display surfaces.ManoloFLTK
2020-02-07Fix state of visible() flag after Fl_Window(x, y, w, h, t).ManoloFLTK
The doc states: "Top-level windows initially have visible() set to 0 and parent() set to NULL. Subwindows initially have visible() set to 1 and parent() set to the parent window pointer." The first statement was not satisfied when a window was constructed with the Fl_Window(x, y, w, h, t) constructor.
2019-03-25Replace static void Fl_Window_Driver::default_icons() by virtual ↵ManoloFLTK
Fl_Screen_Driver::default_icons()
2019-02-23New member function const Fl_Image* Fl_Window::shape() replaces int ↵ManoloFLTK
Fl_Window::is_shaped() The new function allows to get the window's shaping image and delete it after use, if appropriate.
2019-02-02STR #2714: remove new shadow lint for MacOSMatthias Melcher
2018-08-02Move Fl_Window::shape() from file Fl_Window_Driver.cxx to Fl_Window.cxxManolo Gouy
Consequently, the Doxygen documentation of Fl_Window::shape() will reappear. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Window_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-22Add Fl::screen_scale(int) function to get the scaling factor value of a screen.Manolo Gouy
This allows to keep class Fl_Screen_Driver away from the public API. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12Remove public member function Fl_Window_Driver *Fl_Window::driver() so class ↵Manolo Gouy
Fl_Window_Driver is not in FLTK public API. This function is replaced by static Fl_Window_Driver* Fl_Window_Driver::(const Fl_Window *win). The purpose is to have class Fl_Window_Driver outside from FLTK ABI. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-16 Allow calling Fl_Window::decorated_w() with const Fl_Window object and ↵Manolo Gouy
also for decorated_h (cont'd) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-25Fix build with configure --enable-cairo --enable-cairoext.Albrecht Schlosser
Add missing #include <config.h>, see this report in fltk.general: https://groups.google.com/forum/#!topic/fltkgeneral/x80qQ6wt0s4 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-20Improve documentation, fix Fl_Window::icon(NULL).Albrecht Schlosser
This is now documented as legal to reset a window icon. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26Isolate the definition of the 3 public, OS-dependent types (Fl_Offscreen, ↵Manolo Gouy
Fl_Region, Fl_Bitmask). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24Fix the implementation of Fl_Window::default_icons(const Fl_RGB_Image ↵Manolo Gouy
*icons[], int count) under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24Fix the "bizarre makefile build error" due to double declarations of ↵Manolo Gouy
fl_clip_region(Fl_Region). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121