summaryrefslogtreecommitdiff
path: root/FL/Fl_Browser_.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-02 20:54:19 +0100
committerGitHub <noreply@github.com>2023-02-02 20:54:19 +0100
commit1aa6c4fed823e74ded911a134065e2619ad53bf1 (patch)
tree239e65b0af1a1a39012b4187894274e860350235 /FL/Fl_Browser_.H
parent59d3b2e9fd10bdf14592e82ced422346ecd7204e (diff)
Fix position() methods that shadow Fl_Widget::position()
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
Diffstat (limited to 'FL/Fl_Browser_.H')
-rw-r--r--FL/Fl_Browser_.H11
1 files changed, 9 insertions, 2 deletions
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index 03550b67a..207bd7082 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -243,8 +243,15 @@ public:
the list are scrolled off the top edge of the screen.
\see position(), hposition()
*/
- int position() const { return position_; }
- void position(int pos); // scroll to here
+ int vposition() const { return position_; }
+ FL_DEPRECATED("Please use vposition() instead.",
+ int position() const) { return vposition(); }
+
+ void vposition(int pos); // scroll to here
+ FL_DEPRECATED("Please use vposition(pos) instead.",
+ void position(int pos)) { return vposition(pos); }
+ void position(int x, int y) { Fl_Group::position(x, y); }
+
/**
Gets the horizontal scroll position of the list as a pixel position \p pos.
The position returned is how many pixels of the list are scrolled off the left edge