25 #ifndef SFML_WINDOW_HPP
26 #define SFML_WINDOW_HPP
31 #include <SFML/Window/Event.hpp>
32 #include <SFML/Window/Input.hpp>
33 #include <SFML/Window/VideoMode.hpp>
34 #include <SFML/Window/WindowHandle.hpp>
35 #include <SFML/Window/WindowListener.hpp>
36 #include <SFML/Window/WindowSettings.hpp>
37 #include <SFML/Window/WindowStyle.hpp>
38 #include <SFML/System/Clock.hpp>
39 #include <SFML/System/NonCopyable.hpp>
127 bool IsOpened()
const;
135 unsigned int GetWidth()
const;
143 unsigned int GetHeight()
const;
161 bool GetEvent(
Event& EventReceived);
169 void UseVerticalSync(
bool Enabled);
177 void ShowMouseCursor(
bool Show);
186 void SetCursorPosition(
unsigned int Left,
unsigned int Top);
196 void SetPosition(
int Left,
int Top);
205 void SetSize(
unsigned int Width,
unsigned int Height);
213 void Show(
bool State);
222 void EnableKeyRepeat(
bool Enabled);
232 void SetIcon(
unsigned int Width,
unsigned int Height,
const Uint8* Pixels);
243 bool SetActive(
bool Active =
true)
const;
257 const Input& GetInput()
const;
265 void SetFramerateLimit(
unsigned int Limit);
273 float GetFrameTime()
const;
282 void SetJoystickThreshold(
float Threshold);
290 virtual void OnCreate();
298 virtual void OnEvent(
const Event& EventReceived);
306 void Initialize(priv::WindowImpl* Impl);
311 priv::WindowImpl* myWindow;
312 std::queue<Event> myEvents;
316 float myLastFrameTime;
318 unsigned int myFramerateLimit;
326 #endif // SFML_WINDOW_HPP