Add references to SDL docs and exception info

This commit is contained in:
Dmitry Marakasov 2014-12-26 21:54:53 +03:00
parent 28a08d9071
commit 2e57ed81c7

View File

@ -74,12 +74,18 @@ public:
/// \param h Height of the window
/// \param flags 0 or more SDL_WindowFlags OR'd together
///
/// \thows SDL2pp::Exception
///
/// \see http://wiki.libsdl.org/SDL_CreateWindow
///
////////////////////////////////////////////////////////////
Window(const std::string& title, int x, int y, int w, int h, Uint32 flags);
////////////////////////////////////////////////////////////
/// \brief Destructor
///
/// \see http://wiki.libsdl.org/SDL_DestroyWindow
///
////////////////////////////////////////////////////////////
virtual ~Window();
@ -111,6 +117,8 @@ public:
/// \returns SDL2pp::Point representing dimensions (width and
/// height) of the window in pixels
///
/// \see http://wiki.libsdl.org/SDL_GetWindowSize
///
////////////////////////////////////////////////////////////
Point GetSize() const;
@ -119,6 +127,8 @@ public:
///
/// \returns Width of the window in pixels
///
/// \see http://wiki.libsdl.org/SDL_GetWindowSize
///
////////////////////////////////////////////////////////////
int GetWidth() const;
@ -127,6 +137,8 @@ public:
///
/// \returns Height of the window in pixels
///
/// \see http://wiki.libsdl.org/SDL_GetWindowSize
///
////////////////////////////////////////////////////////////
int GetHeight() const;
@ -135,6 +147,8 @@ public:
///
/// \param title New window title in UTF-8 encoding
///
/// \see http://wiki.libsdl.org/SDL_SetWindowTitle
///
////////////////////////////////////////////////////////////
void SetTitle(const std::string& title);