472 #endif // SFML_WINDOW_H CSFML_WINDOW_API void sfWindow_destroy(sfWindow *window)
Destroy a window. 
Titlebar + resizable border + maximize button. 
CSFML_WINDOW_API sfWindow * sfWindow_createFromHandle(sfWindowHandle handle, const sfContextSettings *settings)
Construct a window from an existing control. 
sfContextAttribute
Enumeration of the context attribute flags. 
unsigned int antialiasingLevel
Level of antialiasing. 
unsigned int stencilBits
Bits of the stencil buffer. 
No border / title bar (this flag and all others are mutually exclusive) 
Title bar + fixed border. 
CSFML_WINDOW_API sfBool sfWindow_waitEvent(sfWindow *window, sfEvent *event)
Wait for an event and return it. 
unsigned int minorVersion
Minor number of the context version to create. 
CSFML_WINDOW_API void sfWindow_setMouseCursorGrabbed(sfWindow *window, sfBool grabbed)
Grab or release the mouse cursor. 
CSFML_WINDOW_API sfBool sfWindow_setActive(sfWindow *window, sfBool active)
Activate or deactivate a window as the current target for OpenGL rendering. 
sfBool sRgbCapable
Whether the context framebuffer is sRGB capable. 
unsigned int majorVersion
Major number of the context version to create. 
CSFML_WINDOW_API void sfWindow_setVisible(sfWindow *window, sfBool visible)
Show or hide a window. 
CSFML_WINDOW_API sfWindow * sfWindow_create(sfVideoMode mode, const char *title, sfUint32 style, const sfContextSettings *settings)
Construct a new window. 
CSFML_WINDOW_API void sfWindow_setPosition(sfWindow *window, sfVector2i position)
Change the position of a window on screen. 
CSFML_WINDOW_API void sfWindow_setTitle(sfWindow *window, const char *title)
Change the title of a window. 
2-component vector of integers 
sfEvent defines a system event and its parameters 
2-component vector of unsigned integers 
Non-debug, compatibility context (this and the core attribute are mutually exclusive) ...
CSFML_WINDOW_API sfWindowHandle sfWindow_getSystemHandle(const sfWindow *window)
Get the OS-specific handle of the window. 
CSFML_WINDOW_API sfBool sfWindow_hasFocus(const sfWindow *window)
Check whether the window has the input focus. 
CSFML_WINDOW_API void sfWindow_display(sfWindow *window)
Display on screen what has been rendered to the window so far. 
Fullscreen mode (this flag and all others are mutually exclusive) 
CSFML_WINDOW_API void sfWindow_setFramerateLimit(sfWindow *window, unsigned int limit)
Limit the framerate to a maximum fixed frequency. 
CSFML_WINDOW_API void sfWindow_setKeyRepeatEnabled(sfWindow *window, sfBool enabled)
Enable or disable automatic key-repeat. 
CSFML_WINDOW_API void sfWindow_requestFocus(sfWindow *window)
Request the current window to be made the active foreground window. 
CSFML_WINDOW_API sfBool sfWindow_pollEvent(sfWindow *window, sfEvent *event)
Pop the event on top of event queue, if any, and return it. 
CSFML_WINDOW_API sfContextSettings sfWindow_getSettings(const sfWindow *window)
Get the settings of the OpenGL context of a window. 
CSFML_WINDOW_API void sfWindow_setIcon(sfWindow *window, unsigned int width, unsigned int height, const sfUint8 *pixels)
Change a window's icon. 
sfUint32 attributeFlags
The attribute flags to create the context with. 
CSFML_WINDOW_API sfVector2u sfWindow_getSize(const sfWindow *window)
Get the size of the rendering region of a window. 
CSFML_WINDOW_API void sfWindow_setJoystickThreshold(sfWindow *window, float threshold)
Change the joystick threshold. 
CSFML_WINDOW_API sfBool sfWindow_isOpen(const sfWindow *window)
Tell whether or not a window is opened. 
CSFML_WINDOW_API sfWindow * sfWindow_createUnicode(sfVideoMode mode, const sfUint32 *title, sfUint32 style, const sfContextSettings *settings)
Construct a new window (with a UTF-32 title) 
sfVideoMode defines a video mode (width, height, bpp, frequency) and provides functions for getting m...
CSFML_WINDOW_API void sfWindow_close(sfWindow *window)
Close a window and destroy all the attached resources. 
CSFML_WINDOW_API void sfWindow_setUnicodeTitle(sfWindow *window, const sfUint32 *title)
Change the title of a window (with a UTF-32 string) 
CSFML_WINDOW_API void sfWindow_setMouseCursorVisible(sfWindow *window, sfBool visible)
Show or hide the mouse cursor. 
CSFML_WINDOW_API void sfWindow_setVerticalSyncEnabled(sfWindow *window, sfBool enabled)
Enable or disable vertical synchronization. 
CSFML_WINDOW_API sfVector2i sfWindow_getPosition(const sfWindow *window)
Get the position of a window. 
CSFML_WINDOW_API void sfWindow_setSize(sfWindow *window, sfVector2u size)
Change the size of the rendering region of a window. 
sfWindowStyle
Enumeration of window creation styles. 
Structure defining the window's creation settings. 
unsigned int depthBits
Bits of the depth buffer.