mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-05 20:05:59 -04:00
Move Get to the top of memeber functions for consistency with other classes
This commit is contained in:
parent
f4c2832d90
commit
0007a489c3
@ -50,6 +50,10 @@ Window& Window::operator=(Window&& other) noexcept {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_Window* Window::Get() const {
|
||||||
|
return window_;
|
||||||
|
}
|
||||||
|
|
||||||
Point Window::GetSize() const {
|
Point Window::GetSize() const {
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(window_, &w, &h);
|
SDL_GetWindowSize(window_, &w, &h);
|
||||||
@ -72,10 +76,6 @@ void Window::SetTitle(const std::string& title) {
|
|||||||
SDL_SetWindowTitle(window_, title.c_str());
|
SDL_SetWindowTitle(window_, title.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Window* Window::Get() const {
|
|
||||||
return window_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::Maximize() {
|
void Window::Maximize() {
|
||||||
SDL_MaximizeWindow(window_);
|
SDL_MaximizeWindow(window_);
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,14 @@ public:
|
|||||||
Window(const Window& other) = delete;
|
Window(const Window& other) = delete;
|
||||||
Window& operator=(const Window& other) = delete;
|
Window& operator=(const Window& other) = delete;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Get pointer to contained SDL_Window structure
|
||||||
|
///
|
||||||
|
/// \returns Pointer to SDL_Window structure
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
SDL_Window* Get() const;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Get dimensions of the window
|
/// \brief Get dimensions of the window
|
||||||
///
|
///
|
||||||
@ -152,14 +160,6 @@ public:
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void SetTitle(const std::string& title);
|
void SetTitle(const std::string& title);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Get pointer to contained SDL_Window structure
|
|
||||||
///
|
|
||||||
/// \returns Pointer to SDL_Window structure
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SDL_Window* Get() const;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Make a window as large as possible
|
/// \brief Make a window as large as possible
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user