37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 static constexpr bool value =
true;
112 Window(
const std::string& title, Vector2u size, WindowFlags hints = WindowFlags
(All));
166 void setTitle(
const std::string& title);
227 return m_isFullscreen;
424 SDL_Window *m_window;
430 #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.
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.
Bitfield relying on an enumeration.
Definition: Flags.h:68
bool isFullscreen() const
Check if the window is fullscreen or not.
Definition: Window.h:226
void setTitle(const std::string &title)
Change the title of the window.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
Window(const std::string &title, Vector2u size, WindowFlags hints=WindowFlags(All))
Create a new window.
void setMouseCursorGrabbed(bool grabbed)
Grab or release the mouse cursor.
constexpr AllType All
Constant to represent "all".
Definition: Types.h:61
void display()
Display on screen what has been rendered to the window so far.
bool isResizable() const
Check if the window is resizable.
WindowHints
Hints for window creation.
Definition: Window.h:47
constexpr Flags(AllType)
Definition: Flags.h:81
void toggleFullscreen()
Toggle the fullscreen state.
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:97
void maximize()
Maximize the window.
void close()
Request for closing.
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.