31 #include <SFML/Window/Export.h>
32 #include <SFML/Window/Event.h>
33 #include <SFML/Window/VideoMode.h>
34 #include <SFML/Window/WindowHandle.h>
35 #include <SFML/Window/Types.h>
36 #include <SFML/System/Vector2.h>
49 sfFullscreen = 1 << 3,
50 sfDefaultStyle = sfTitlebar | sfResize | sfClose
61 sfContextCore = 1 << 0,
62 sfContextDebug = 1 << 2
126 CSFML_WINDOW_API sfWindow* sfWindow_createUnicode(
sfVideoMode mode,
const sfUint32* title, sfUint32 style,
const sfContextSettings* settings);
144 CSFML_WINDOW_API sfWindow* sfWindow_createFromHandle(sfWindowHandle handle,
const sfContextSettings* settings);
152 CSFML_WINDOW_API
void sfWindow_destroy(sfWindow* window);
166 CSFML_WINDOW_API
void sfWindow_close(sfWindow* window);
180 CSFML_WINDOW_API sfBool sfWindow_isOpen(
const sfWindow* window);
212 CSFML_WINDOW_API sfBool sfWindow_pollEvent(sfWindow* window,
sfEvent* event);
231 CSFML_WINDOW_API sfBool sfWindow_waitEvent(sfWindow* window,
sfEvent* event);
241 CSFML_WINDOW_API
sfVector2i sfWindow_getPosition(
const sfWindow* window);
254 CSFML_WINDOW_API
void sfWindow_setPosition(sfWindow* window,
sfVector2i position);
267 CSFML_WINDOW_API
sfVector2u sfWindow_getSize(
const sfWindow* window);
276 CSFML_WINDOW_API
void sfWindow_setSize(sfWindow* window,
sfVector2u size);
285 CSFML_WINDOW_API
void sfWindow_setTitle(sfWindow* window,
const char* title);
294 CSFML_WINDOW_API
void sfWindow_setUnicodeTitle(sfWindow* window,
const sfUint32* title);
308 CSFML_WINDOW_API
void sfWindow_setIcon(sfWindow* window,
unsigned int width,
unsigned int height,
const sfUint8* pixels);
317 CSFML_WINDOW_API
void sfWindow_setVisible(sfWindow* window, sfBool visible);
331 CSFML_WINDOW_API
void sfWindow_setVerticalSyncEnabled(sfWindow* window, sfBool enabled);
340 CSFML_WINDOW_API
void sfWindow_setMouseCursorVisible(sfWindow* window, sfBool visible);
355 CSFML_WINDOW_API
void sfWindow_setMouseCursorGrabbed(sfWindow* window, sfBool grabbed);
375 CSFML_WINDOW_API
void sfWindow_setMouseCursor(sfWindow* window,
const sfCursor* cursor);
390 CSFML_WINDOW_API
void sfWindow_setKeyRepeatEnabled(sfWindow* window, sfBool enabled);
403 CSFML_WINDOW_API
void sfWindow_setFramerateLimit(sfWindow* window,
unsigned int limit);
415 CSFML_WINDOW_API
void sfWindow_setJoystickThreshold(sfWindow* window,
float threshold);
434 CSFML_WINDOW_API sfBool sfWindow_setActive(sfWindow* window, sfBool active);
448 CSFML_WINDOW_API
void sfWindow_requestFocus(sfWindow* window);
460 CSFML_WINDOW_API sfBool sfWindow_hasFocus(
const sfWindow* window);
473 CSFML_WINDOW_API
void sfWindow_display(sfWindow* window);
489 CSFML_WINDOW_API sfWindowHandle sfWindow_getSystemHandle(
const sfWindow* window);
492 #endif // SFML_WINDOW_H