mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 11:25:58 -04:00
Mark deprecated functions as such
This commit is contained in:
parent
0ff5d3cf33
commit
dda468ae62
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <SDL2/SDL_rect.h>
|
#include <SDL2/SDL_rect.h>
|
||||||
|
|
||||||
|
#include <SDL2pp/Config.hh>
|
||||||
#include <SDL2pp/Optional.hh> // for deprecated functionality
|
#include <SDL2pp/Optional.hh> // for deprecated functionality
|
||||||
|
|
||||||
namespace SDL2pp {
|
namespace SDL2pp {
|
||||||
@ -33,7 +34,7 @@ public:
|
|||||||
Point();
|
Point();
|
||||||
Point(int nx, int ny);
|
Point(int nx, int ny);
|
||||||
|
|
||||||
static Optional<Point> Null();
|
SDL2PP_DEPRECATED static Optional<Point> Null();
|
||||||
|
|
||||||
Point(const Point&) noexcept = default;
|
Point(const Point&) noexcept = default;
|
||||||
Point(Point&&) noexcept = default;
|
Point(Point&&) noexcept = default;
|
||||||
@ -43,10 +44,10 @@ public:
|
|||||||
bool operator==(const Point& other) const;
|
bool operator==(const Point& other) const;
|
||||||
bool operator!=(const Point& other) const;
|
bool operator!=(const Point& other) const;
|
||||||
|
|
||||||
SDL_Point* Get();
|
SDL2PP_DEPRECATED SDL_Point* Get();
|
||||||
const SDL_Point* Get() const;
|
SDL2PP_DEPRECATED const SDL_Point* Get() const;
|
||||||
|
|
||||||
bool IsNull() const;
|
SDL2PP_DEPRECATED bool IsNull() const;
|
||||||
|
|
||||||
int GetX() const;
|
int GetX() const;
|
||||||
void SetX(int nx);
|
void SetX(int nx);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <SDL2/SDL_rect.h>
|
#include <SDL2/SDL_rect.h>
|
||||||
|
|
||||||
|
#include <SDL2pp/Config.hh>
|
||||||
#include <SDL2pp/Optional.hh> // for deprecated functionality
|
#include <SDL2pp/Optional.hh> // for deprecated functionality
|
||||||
|
|
||||||
struct SDL_Rect;
|
struct SDL_Rect;
|
||||||
@ -37,7 +38,7 @@ public:
|
|||||||
Rect();
|
Rect();
|
||||||
Rect(int x, int y, int w, int h);
|
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);
|
static Rect FromCenter(int cx, int cy, int w, int h);
|
||||||
|
|
||||||
@ -50,10 +51,10 @@ public:
|
|||||||
bool operator!=(const Rect& other) const;
|
bool operator!=(const Rect& other) const;
|
||||||
|
|
||||||
// deprecated
|
// deprecated
|
||||||
SDL_Rect* Get();
|
SDL2PP_DEPRECATED SDL_Rect* Get();
|
||||||
const SDL_Rect* Get() const;
|
SDL2PP_DEPRECATED const SDL_Rect* Get() const;
|
||||||
|
|
||||||
bool IsNull() const;
|
SDL2PP_DEPRECATED bool IsNull() const;
|
||||||
|
|
||||||
int GetX() const;
|
int GetX() const;
|
||||||
void SetX(int x);
|
void SetX(int x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user