25 #ifndef SFML_WINDOW_HPP
26 #define SFML_WINDOW_HPP
31 #include <SFML/Window/Export.hpp>
32 #include <SFML/Window/ContextSettings.hpp>
33 #include <SFML/Window/VideoMode.hpp>
34 #include <SFML/Window/WindowHandle.hpp>
35 #include <SFML/Window/WindowStyle.hpp>
36 #include <SFML/Window/GlResource.hpp>
37 #include <SFML/System/Clock.hpp>
38 #include <SFML/System/Vector2.hpp>
39 #include <SFML/System/NonCopyable.hpp>
40 #include <SFML/System/String.hpp>
203 bool pollEvent(
Event& event);
230 bool waitEvent(
Event& event);
254 void setPosition(
const Vector2i& position);
287 void setTitle(
const String& title);
304 void setIcon(
unsigned int width,
unsigned int height,
const Uint8* pixels);
314 void setVisible(
bool visible);
329 void setVerticalSyncEnabled(
bool enabled);
339 void setMouseCursorVisible(
bool visible);
353 void setKeyRepeatEnabled(
bool enabled);
370 void setFramerateLimit(
unsigned int limit);
383 void setJoystickThreshold(
float threshold);
400 bool setActive(
bool active =
true)
const;
424 WindowHandle getSystemHandle()
const;
436 virtual void onCreate();
445 virtual void onResize();
461 bool filterEvent(
const Event& event);
472 priv::WindowImpl* m_impl;
473 priv::GlContext* m_context;
475 Time m_frameTimeLimit;
482 #endif // SFML_WINDOW_HPP