diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-02 20:54:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-02 20:54:19 +0100 |
| commit | 1aa6c4fed823e74ded911a134065e2619ad53bf1 (patch) | |
| tree | 239e65b0af1a1a39012b4187894274e860350235 /FL/Fl_Browser_.H | |
| parent | 59d3b2e9fd10bdf14592e82ced422346ecd7204e (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_.H | 11 |
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 |
