summaryrefslogtreecommitdiff
path: root/FL/Fl_Window.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-05-14 19:05:04 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-05-14 19:05:04 +0200
commit0960f1c066ad6a94754a081c5b54f34fee4b67f6 (patch)
treecde3b781775f824ffe56f3080eb7f44882a409b1 /FL/Fl_Window.H
parent3114ef0e2f6a9649691f1a9113734787da9ab909 (diff)
Fl_Window::free_position() must not be deprecated
This method was erroneously declared 'deprecated' in previous versions. However, this method is public and calls the *protected* method Fl_Window::force_position(). Therefore it is kept as a regular public method.
Diffstat (limited to 'FL/Fl_Window.H')
-rw-r--r--FL/Fl_Window.H13
1 files changed, 8 insertions, 5 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H
index c684927ab..c5b13faba 100644
--- a/FL/Fl_Window.H
+++ b/FL/Fl_Window.H
@@ -1,7 +1,7 @@
//
// Window header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2023 by Bill Spitzak and others.
+// Copyright 1998-2025 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
@@ -118,8 +118,9 @@ protected:
if (force) set_flag(FORCE_POSITION);
else clear_flag(FORCE_POSITION);
}
+
/**
- Returns the internal state of the window's FORCE_POSITION flag.
+ Returns the internal state of the window's \c FORCE_POSITION flag.
\retval 1 if flag is set
\retval 0 otherwise
@@ -350,11 +351,13 @@ public:
Undoes the effect of a previous resize() or show() so that the next time
show() is called the window manager is free to position the window.
- This is for Forms compatibility only.
+ This is the same as the \e protected method Fl_Window::force_position(0).
- \deprecated please use force_position(0) instead
+ \internal
+ This method was erroneously declared 'deprecated' in earlier versions.
+ This has been corrected in FLTK 1.4.3.
*/
- void free_position() {clear_flag(FORCE_POSITION);}
+ void free_position() { clear_flag(FORCE_POSITION); }
void size_range(int minw, int minh, int maxw=0, int maxh=0, int dw=0, int dh=0, int aspect=0);