Mark deprecated functions as such

This commit is contained in:
Dmitry Marakasov 2014-12-25 22:34:16 +03:00
parent 0ff5d3cf33
commit dda468ae62
2 changed files with 10 additions and 8 deletions

View File

@ -24,6 +24,7 @@
#include <SDL2/SDL_rect.h>
#include <SDL2pp/Config.hh>
#include <SDL2pp/Optional.hh> // for deprecated functionality
namespace SDL2pp {
@ -33,7 +34,7 @@ public:
Point();
Point(int nx, int ny);
static Optional<Point> Null();
SDL2PP_DEPRECATED static Optional<Point> Null();
Point(const Point&) noexcept = default;
Point(Point&&) noexcept = default;
@ -43,10 +44,10 @@ public:
bool operator==(const Point& other) const;
bool operator!=(const Point& other) const;
SDL_Point* Get();
const SDL_Point* Get() const;
SDL2PP_DEPRECATED SDL_Point* Get();
SDL2PP_DEPRECATED const SDL_Point* Get() const;
bool IsNull() const;
SDL2PP_DEPRECATED bool IsNull() const;
int GetX() const;
void SetX(int nx);

View File

@ -24,6 +24,7 @@
#include <SDL2/SDL_rect.h>
#include <SDL2pp/Config.hh>
#include <SDL2pp/Optional.hh> // for deprecated functionality
struct SDL_Rect;
@ -37,7 +38,7 @@ public:
Rect();
Rect(int x, int y, int w, int h);
static Optional<Rect> Null();
SDL2PP_DEPRECATED static Optional<Rect> Null();
static Rect FromCenter(int cx, int cy, int w, int h);
@ -50,10 +51,10 @@ public:
bool operator!=(const Rect& other) const;
// deprecated
SDL_Rect* Get();
const SDL_Rect* Get() const;
SDL2PP_DEPRECATED SDL_Rect* Get();
SDL2PP_DEPRECATED const SDL_Rect* Get() const;
bool IsNull() const;
SDL2PP_DEPRECATED bool IsNull() const;
int GetX() const;
void SetX(int x);