32 #include "Portability.h" 33 #include "StringRef.h" 40 #ifndef DOXYGEN_SHOULD_SKIP_THIS 64 #ifndef DOXYGEN_SHOULD_SKIP_THIS 69 static constexpr
bool value =
true;
173 void setPosition(
Vector2i position);
198 Vector2i getFramebufferSize()
const;
205 void setFullscreen(
bool full =
true);
210 void toggleFullscreen();
218 return m_isFullscreen;
233 bool isMinimized()
const;
252 bool isMaximized()
const;
264 bool isVisible()
const;
286 void setVisible(
bool visible =
true);
293 bool isDecorated()
const;
301 void setDecorated(
bool decorated =
true);
308 bool isFocused()
const;
315 bool isResizable()
const;
325 void setResizable(
bool resizable =
true);
356 bool pollEvent(
Event& event);
382 bool waitEvent(
Event& event);
402 void setVerticalSyncEnabled(
bool enabled);
410 bool isVerticalSyncEnabled()
const;
421 void setFramerateLimit(
unsigned int limit);
449 void setMouseCursorVisible(
bool visible);
463 void setMouseCursorGrabbed(
bool grabbed);
475 void setMouseCursor(
const Cursor& cursor);
484 SDL_Window *m_window;
496 #ifndef DOXYGEN_SHOULD_SKIP_THIS 502 #endif // GL_WINDOW_H
bool isFullscreen() const
Check if the window is fullscreen or not.
Definition: Window.h:217
Bitfield relying on an enumeration.
Definition: Flags.h:46
constexpr AllType All
Constant to represent "all".
Definition: Types.h:61
WindowHints
Hints for window creation.
Definition: Window.h:52
The cell is visible (computed by FoV)
Represents a time value.
Definition: Time.h:74
Flags< WindowHints > WindowFlags
Flags for window creation.
Definition: Window.h:63
The namespace for gf classes.
Definition: Action.h:35
A class to represent the library.
Definition: Library.h:44
An OS window.
Definition: Window.h:88
A constant reference to a string and its size.
Definition: StringRef.h:41
A mouse cursor.
Definition: Cursor.h:62
Defines a system event and its parameters.
Definition: Event.h:97
Utility class that measures the elapsed time.
Definition: Clock.h:61