33 #include "GraphicsApi.h" 41 #ifndef DOXYGEN_SHOULD_SKIP_THIS 58 #ifndef DOXYGEN_SHOULD_SKIP_THIS 62 struct EnableBitmaskOperators<WindowHints> {
63 static constexpr
bool value =
true;
151 void setTitle(
const std::string& title);
167 void setPosition(
Vector2i position);
192 Vector2i getFramebufferSize()
const;
199 void setFullscreen(
bool full =
true);
204 void toggleFullscreen();
212 return m_isFullscreen;
227 bool isMinimized()
const;
246 bool isMaximized()
const;
258 bool isVisible()
const;
280 void setVisible(
bool visible =
true);
287 bool isDecorated()
const;
295 void setDecorated(
bool decorated =
true);
302 bool isFocused()
const;
309 bool isResizable()
const;
319 void setResizable(
bool resizable =
true);
357 bool pollEvent(
Event& event);
383 bool waitEvent(
Event& event);
403 void setVerticalSyncEnabled(
bool enabled);
411 bool isVerticalSyncEnabled()
const;
422 void setFramerateLimit(
unsigned int limit);
450 void setMouseCursorVisible(
bool visible);
464 void setMouseCursorGrabbed(
bool grabbed);
476 void setMouseCursor(
const Cursor& cursor);
485 void makeMainContextCurrent();
486 void makeSharedContextCurrent();
487 void makeNoContextCurrent();
490 static std::vector<Event> g_pendingEvents;
492 bool pickEventForWindow(uint32_t windowId,
Event& event);
498 SDL_Window *m_window;
501 void *m_sharedContext;
512 #ifndef DOXYGEN_SHOULD_SKIP_THIS 518 #endif // GL_WINDOW_H An event is pending on the sockets.
uint32_t getWindowId() const
Get the window id.
Definition: Window.h:332
bool isFullscreen() const
Check if the window is fullscreen or not.
Definition: Window.h:211
Bitfield relying on an enumeration.
Definition: Flags.h:46
A shared OpenGL context with the main thread.
Definition: SharedGraphics.h:42
Represents a time value.
Definition: Time.h:65
The namespace for gf classes.
Definition: Action.h:35
A class to represent the library.
Definition: Library.h:44
A window that can serve as a target for 2D drawing.
Definition: RenderWindow.h:80
An OS window.
Definition: Window.h:82
If all of the activities ends.
The cell is visible (computed by FoV)
A mouse cursor.
Definition: Cursor.h:63
WindowHints
Hints for window creation.
Definition: Window.h:52
Defines a system event and its parameters.
Definition: Event.h:224
Utility class that measures the elapsed time.
Definition: Clock.h:61