36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
125 void setTitle(
const std::string& title);
369 SDL_Window *m_window;
375 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Vector2i getPosition() const
Get the position of the window.
void show()
Show a window.
bool pollEvent(Event &event)
Pop the event on top of the event queue, if any, and return it.
bool decorated
Is the window decorated?
Definition: Window.h:49
void setSize(Vector2u size)
Change the size of the rendering region of the window.
bool isOpen()
Tell whether or not closing has been requested.
void restore()
Restore the window.
void minimize()
Minimize the window.
bool isVisible() const
Check if the window is visible.
Window(const Window &)=delete
Deleted copy constructor.
void setTitle(const std::string &title)
Change the title of the window.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
void setMouseCursorGrabbed(bool grabbed)
Grab or release the mouse cursor.
void display()
Display on screen what has been rendered to the window so far.
bool isResizable() const
Check if the window is resizable.
bool resizable
Is the window resizable?
Definition: Window.h:47
Vector2u getSize() const
Get the size of the rendering region of the window.
Window & operator=(const Window &)=delete
Deleted copy assignment.
void setPosition(Vector2i position)
Change the position of the window on screen.
A class to represent the library.
Definition: Library.h:42
An OS window.
Definition: Window.h:56
Hints for window creation.
Definition: Window.h:46
Window(const std::string &title, Vector2u size, WindowHints hints=WindowHints())
Create a new window.
void maximize()
Maximize the window.
void close()
Request for closing.
bool visible
Is the window visible?
Definition: Window.h:48
bool isDecorated() const
Check if the window is decorated.
void setMouseCursorVisible(bool visible)
Show or hide the mouse cursor.
bool isFocused() const
Check if the window is focused.
Defines a system event and its parameters.
Definition: Event.h:115
#define GF_API
Definition: Portability.h:35
bool waitEvent(Event &event)
Wait for an event and return it.
Vector2u getFramebufferSize() const
Get the size of the underlying framebuffer.
void hide()
Hide a window.
void setFullscreen(bool full=true)
Change the window state to fullscreen or not.
bool isMinimized() const
Check if the window is minimized.