diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-05 12:39:10 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-05 12:39:10 +0100 |
| commit | 676e976cb6de59fb12059cdf5a8ef99f8e8ee53f (patch) | |
| tree | b56a71f21ed4c2b3062f54c30dae51878ab30218 /FL/Fl_Widget.H | |
| parent | 0da00995a8052119228e7a84e2a34440142504fb (diff) | |
Fl_Window_Driver::set_popup_window(), Fl_Screen_Driver::screen_boundaries_known()
Fl_Window_Driver::set_popup_window() is to be used to declare a window should be
positioned relatively to a previously mapped other window. This allows a platform
to process such windows differently from other windows if needed.
Menu and tooltip windows are so declared.
A call to Fl_Window_Driver::set_popup_window() also allows to distinguish a real
menu or tooltip window from a window marked by Fl_Window::set_menu_window()
or by Fl_Window::set_tooltip_window() but that's not a real menu or tooltip.
New member function bool Fl_Screen_Driver::screen_boundaries_known() returns
true by default. A platform where the position of windows inside a screen is hidden
(e.g., Wayland) returns false. This allows FLTK to refrain from trying to make sure
a computed position is inside a screen.
Diffstat (limited to 'FL/Fl_Widget.H')
| -rw-r--r-- | FL/Fl_Widget.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index fb0f32eb0..cc616bcf0 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -1,7 +1,7 @@ // // Widget header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2023 by Bill Spitzak and others. +// Copyright 1998-2024 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -181,6 +181,7 @@ protected: DEIMAGE_BOUND = 1<<22, ///< bind the inactive image to the widget, so the widget deletes the image when it is no longer needed AUTO_DELETE_USER_DATA = 1<<23, ///< automatically call `delete` on the user_data pointer when destroying this widget; if set, user_data must point to a class derived from the class Fl_Callback_User_Data MAXIMIZED = 1<<24, ///< a maximized Fl_Window + POPUP = 1<<25, ///< popup window (i.e., positioned relatively to another mapped window) // Note to devs: add new FLTK core flags above this line (up to 1<<28). // Three more flags, reserved for user code |
