diff --git a/SDL2pp/Point.hh b/SDL2pp/Point.hh index a622ccb..e185f56 100644 --- a/SDL2pp/Point.hh +++ b/SDL2pp/Point.hh @@ -24,6 +24,7 @@ #include +#include #include // for deprecated functionality namespace SDL2pp { @@ -33,7 +34,7 @@ public: Point(); Point(int nx, int ny); - static Optional Null(); + SDL2PP_DEPRECATED static Optional 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); diff --git a/SDL2pp/Rect.hh b/SDL2pp/Rect.hh index 36dfe32..23f6d92 100644 --- a/SDL2pp/Rect.hh +++ b/SDL2pp/Rect.hh @@ -24,6 +24,7 @@ #include +#include #include // for deprecated functionality struct SDL_Rect; @@ -37,7 +38,7 @@ public: Rect(); Rect(int x, int y, int w, int h); - static Optional Null(); + SDL2PP_DEPRECATED static Optional 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);