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 Titlebar + resizable border + maximize button.
Structure defining the creation settings of windows.
Utility base class to easily declare non-copyable classes.
VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for gett...
Clock is an utility class for manipulating time.
Window is a rendering window ; it can create a new window or connect to an existing one...
Base class for classes that want to receive events from a window (for internal use only) ...
Event defines a system event and its parameters.