39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 static constexpr bool value =
true;
101 Window(
const std::string& title, Vector2u size, WindowFlags hints = WindowFlags
(All));
155 void setTitle(
const std::string& title);
216 return m_isFullscreen;
452 SDL_Window *m_window;
462 #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:215
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
bool isVerticalSyncEnabled() const
Check if the vertical synchronization is enabled.
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:50
Represents a time value.
Definition: Time.h:73
constexpr Flags(AllType)
Constructor with all flags set.
Definition: Flags.h:87
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.
The namespace for gf classes.
Definition: Action.h:34
A class to represent the library.
Definition: Library.h:42
An OS window.
Definition: Window.h:86
void setFramerateLimit(unsigned int limit)
Limit the framerate to a maximum fixed frequency.
void maximize()
Maximize the window.
void setVisible(bool visible=true)
Show or hide 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:118
#define GF_API
Definition: Portability.h:35
Utility class that measures the elapsed time.
Definition: Clock.h:67
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 setDecorated(bool decorated=true)
Show or hide the decoration of the window.
void setFullscreen(bool full=true)
Change the window state to fullscreen or not.
bool isMinimized() const
Check if the window is minimized.