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_Tile.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_Tile.H')
| -rw-r--r-- | FL/Fl_Tile.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Tile.H b/FL/Fl_Tile.H index 52d14210c..d6003c286 100644 --- a/FL/Fl_Tile.H +++ b/FL/Fl_Tile.H @@ -29,7 +29,10 @@ public: int handle(int event) FL_OVERRIDE; Fl_Tile(int X, int Y, int W, int H, const char *L=0); void resize(int X, int Y, int W, int H) FL_OVERRIDE; - void position(int oldx, int oldy, int newx, int newy); + void move_intersection(int oldx, int oldy, int newx, int newy); + FL_DEPRECATED("Please use move_intersection(p) instead.", + void position(int oldx, int oldy, int newx, int newy)) { return move_intersection(oldx, oldy, newx, newy); } + void position(int x, int y) { Fl_Group::position(x, y); } }; #endif |
