25#ifndef SFML_WINDOW_HPP
26#define SFML_WINDOW_HPP
31#include <SFML/Window/ContextSettings.hpp>
32#include <SFML/Window/GlResource.hpp>
33#include <SFML/Window/WindowBase.hpp>
268 bool filterEvent(
const Event& event);
279 priv::GlContext* m_context;
281 Time m_frameTimeLimit;
Utility class that measures the elapsed time.
Defines a system event and its parameters.
Base class for classes that require an OpenGL context.
Utility string class that automatically handles conversions between types and encodings.
VideoMode defines a video mode (width, height, bpp)
Window that serves as a base for other windows.
Window that serves as a target for OpenGL rendering.
const ContextSettings & getSettings() const
Get the settings of the OpenGL context of the window.
virtual void create(WindowHandle handle, const ContextSettings &settings)
Create (or recreate) the window from an existing control.
Window(VideoMode mode, const String &title, Uint32 style=Style::Default, const ContextSettings &settings=ContextSettings())
Construct a new window.
Window()
Default constructor.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
virtual void create(WindowHandle handle)
Create (or recreate) the window from an existing control.
virtual void create(VideoMode mode, const String &title, Uint32 style, const ContextSettings &settings)
Create (or recreate) the window.
Window(WindowHandle handle, const ContextSettings &settings=ContextSettings())
Construct the window from an existing control.
virtual void close()
Close the window and destroy all the attached resources.
bool setActive(bool active=true) const
Activate or deactivate the window as the current target for OpenGL rendering.
virtual ~Window()
Destructor.
virtual void create(VideoMode mode, const String &title, Uint32 style=Style::Default)
Create (or recreate) the window.
void display()
Display on screen what has been rendered to the window so far.
void setFramerateLimit(unsigned int limit)
Limit the framerate to a maximum fixed frequency.
platform specific WindowHandle
Define a low-level window handle type, specific to each platform.
Structure defining the settings of the OpenGL context attached to a window.