Loading...
Searching...
No Matches
Window/Window.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
174 void create(VideoMode mode, const String& title, std::uint32_t style = Style::Default, State state = State::Windowed) override;
193 virtual void create(VideoMode mode, const String& title, std::uint32_t style, State state, const ContextSettings& settings);
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:89
const ContextSettings & getSettings() const
Get the settings of the OpenGL context of the window.
Window(WindowHandle handle, const ContextSettings &settings={})
Construct the window from an existing control.
Window(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed, const ContextSettings &settings={})
Construct a new window.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
Window(VideoMode mode, const String &title, State state, const ContextSettings &settings={})
Construct a new window.
bool setActive(bool active=true) const
Activate or deactivate the window as the current target for OpenGL rendering.
void create(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed) override
Create (or recreate) the window.
void setFramerateLimit(unsigned int limit)
Limit the framerate to a maximum fixed frequency.
"platform-specific" WindowHandle
Low-level window handle type, specific to each platform.
Definition WindowHandle.hpp:68
Definition WindowEnums.hpp:31
Definition AudioResource.hpp:36
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:39