Fixes FL_DEPRECATED for Fl_Text_Buffer.h

This commit is contained in:
Matthias Melcher 2023-02-10 16:14:30 +01:00
parent d7f21d9568
commit fc9d0a23af
4 changed files with 8 additions and 8 deletions

View File

@ -245,11 +245,11 @@ public:
\see position(), hposition() \see position(), hposition()
*/ */
int vposition() const { return position_; } int vposition() const { return position_; }
FL_DEPRECATED("Please use vposition() instead.", FL_DEPRECATED("Please use vposition() instead (since 1.4.0).",
int position() const) { return vposition(); } int position() const) { return vposition(); }
void vposition(int pos); // scroll to here void vposition(int pos); // scroll to here
FL_DEPRECATED("Please use vposition(pos) instead.", FL_DEPRECATED("Please use vposition(pos) instead (since 1.4.0).",
void position(int pos)) { return vposition(pos); } void position(int pos)) { return vposition(pos); }
void position(int x, int y) { Fl_Group::position(x, y); } void position(int x, int y) { Fl_Group::position(x, y); }

View File

@ -285,7 +285,7 @@ public:
\see insert_position(int, int) \see insert_position(int, int)
*/ */
int insert_position() const { return position_; } int insert_position() const { return position_; }
FL_DEPRECATED("Please use insert_position() instead.", FL_DEPRECATED("Please use insert_position() instead (since 1.4.0).",
int position() const ) { return insert_position(); } int position() const ) { return insert_position(); }
/** Gets the current selection mark. /** Gets the current selection mark.
@ -294,7 +294,7 @@ public:
/* Sets the index for the cursor and mark. */ /* Sets the index for the cursor and mark. */
int insert_position(int p, int m); int insert_position(int p, int m);
FL_DEPRECATED("Please use insert_position(p, m) or Fl_Widget::position(x, y) instead.", FL_DEPRECATED("Please use insert_position(p, m) or Fl_Widget::position(x, y) instead (since 1.4.0).",
int position(int p, int m)) { return insert_position(p, m); } int position(int p, int m)) { return insert_position(p, m); }
/** Sets the cursor position and mark. /** Sets the cursor position and mark.
@ -304,7 +304,7 @@ public:
\see insert_position(int, int), insert_position(), mark(int) \see insert_position(int, int), insert_position(), mark(int)
*/ */
int insert_position(int p) { return insert_position(p, p); } int insert_position(int p) { return insert_position(p, p); }
FL_DEPRECATED("Please use insert_position(p) instead.", FL_DEPRECATED("Please use insert_position(p) instead (since 1.4.0).",
int position(int p)) { return insert_position(p); } int position(int p)) { return insert_position(p); }
/** Sets the current selection mark. /** Sets the current selection mark.

View File

@ -23,7 +23,7 @@
#define FL_TEXT_BUFFER_H #define FL_TEXT_BUFFER_H
#include <stdarg.h> /* va_list */ #include <stdarg.h> /* va_list */
#include <FL/fl_attr.h> #include "fl_attr.h" /* Doxygen can't find <FL/fl_attr.h> */
#undef ASSERT_UTF8 #undef ASSERT_UTF8
@ -166,7 +166,7 @@ public:
// Returns true if selected() and the positions of this selection. // Returns true if selected() and the positions of this selection.
int selected(int *startpos, int *endpos) const; int selected(int *startpos, int *endpos) const;
FL_DEPRECATED("Please use selected(startpos, endpos) instead.", FL_DEPRECATED("Please use selected(startpos, endpos) instead (since 1.4.0).",
int position(int *startpos, int *endpos) const) { return selected(startpos, endpos); } int position(int *startpos, int *endpos) const) { return selected(startpos, endpos); }
protected: protected:

View File

@ -30,7 +30,7 @@ public:
Fl_Tile(int X, int Y, int W, int H, const char *L=0); 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 resize(int X, int Y, int W, int H) FL_OVERRIDE;
void move_intersection(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.", FL_DEPRECATED("Please use move_intersection(p) instead (since 1.4.0).",
void position(int oldx, int oldy, int newx, int newy)) { return move_intersection(oldx, oldy, newx, newy); } 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); } void position(int x, int y) { Fl_Group::position(x, y); }
}; };