40 #ifndef DOXYGEN_SHOULD_SKIP_THIS 64 #ifndef DOXYGEN_SHOULD_SKIP_THIS 69 static constexpr bool value =
true;
218 return m_isFullscreen;
466 SDL_Window *m_window;
476 #ifndef DOXYGEN_SHOULD_SKIP_THIS 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 isDecorated() const
Check if the window is decorated.
bool isFullscreen() const
Check if the window is fullscreen or not.
Definition: Window.h:217
Window(const Window &)=delete
Deleted copy constructor.
Bitfield relying on an enumeration.
Definition: Flags.h:68
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
Vector2u getFramebufferSize() const
Get the size of the underlying framebuffer.
void setMouseCursorGrabbed(bool grabbed)
Grab or release the mouse cursor.
Vector2i getPosition() const
Get the position of the window.
void display()
Display on screen what has been rendered to the window so far.
Window(StringRef title, Vector2u size, WindowFlags hints=WindowFlags(All))
Create a new window.
void setMouseCursor(const Cursor &cursor)
Set the displayed cursor to a native system cursor.
bool isFocused() const
Check if the window is focused.
WindowHints
Hints for window creation.
Definition: Window.h:52
Represents a time value.
Definition: Time.h:73
bool isVerticalSyncEnabled() const
Check if the vertical synchronization is enabled.
void toggleFullscreen()
Toggle the fullscreen state.
Window & operator=(const Window &)=delete
Deleted copy assignment.
void setTitle(StringRef title)
Change the title of the window.
Vector2u getSize() const
Get the size of the rendering region of the window.
bool isResizable() const
Check if the window is resizable.
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:44
An OS window.
Definition: Window.h:88
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.
bool isVisible() const
Check if the window is visible.
A constant reference to a string and its size.
Definition: StringRef.h:41
void close()
Request for closing.
A mouse cursor.
Definition: Cursor.h:72
void setMouseCursorVisible(bool visible)
Show or hide the mouse cursor.
Defines a system event and its parameters.
Definition: Event.h:118
bool isMinimized() const
Check if the window is minimized.
#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.
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.