25 #ifndef SFML_RENDERWINDOW_H
26 #define SFML_RENDERWINDOW_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Types.h>
35 #include <SFML/Graphics/PrimitiveType.h>
36 #include <SFML/Graphics/RenderStates.h>
37 #include <SFML/Graphics/Vertex.h>
38 #include <SFML/Window/Event.h>
39 #include <SFML/Window/VideoMode.h>
40 #include <SFML/Window/WindowHandle.h>
41 #include <SFML/Window/Window.h>
42 #include <SFML/System/Vector2.h>
55 CSFML_GRAPHICS_API sfRenderWindow* sfRenderWindow_create(
sfVideoMode mode,
const char* title, sfUint32 style,
const sfContextSettings* settings);
66 CSFML_GRAPHICS_API sfRenderWindow* sfRenderWindow_createUnicode(
sfVideoMode mode,
const sfUint32* title, sfUint32 style,
const sfContextSettings* settings);
75 CSFML_GRAPHICS_API sfRenderWindow* sfRenderWindow_createFromHandle(sfWindowHandle handle,
const sfContextSettings* settings);
83 CSFML_GRAPHICS_API
void sfRenderWindow_destroy(sfRenderWindow* renderWindow);
91 CSFML_GRAPHICS_API
void sfRenderWindow_close(sfRenderWindow* renderWindow);
99 CSFML_GRAPHICS_API sfBool sfRenderWindow_isOpen(
const sfRenderWindow* renderWindow);
109 CSFML_GRAPHICS_API
sfContextSettings sfRenderWindow_getSettings(
const sfRenderWindow* renderWindow);
120 CSFML_GRAPHICS_API sfBool sfRenderWindow_pollEvent(sfRenderWindow* renderWindow,
sfEvent* event);
131 CSFML_GRAPHICS_API sfBool sfRenderWindow_waitEvent(sfRenderWindow* renderWindow,
sfEvent* event);
141 CSFML_GRAPHICS_API
sfVector2i sfRenderWindow_getPosition(
const sfRenderWindow* renderWindow);
152 CSFML_GRAPHICS_API
void sfRenderWindow_setPosition(sfRenderWindow* renderWindow,
sfVector2i position);
162 CSFML_GRAPHICS_API
sfVector2u sfRenderWindow_getSize(
const sfRenderWindow* renderWindow);
171 CSFML_GRAPHICS_API
void sfRenderWindow_setSize(sfRenderWindow* renderWindow,
sfVector2u size);
180 CSFML_GRAPHICS_API
void sfRenderWindow_setTitle(sfRenderWindow* renderWindow,
const char* title);
189 CSFML_GRAPHICS_API
void sfRenderWindow_setUnicodeTitle(sfRenderWindow* renderWindow,
const sfUint32* title);
200 CSFML_GRAPHICS_API
void sfRenderWindow_setIcon(sfRenderWindow* renderWindow,
unsigned int width,
unsigned int height,
const sfUint8* pixels);
209 CSFML_GRAPHICS_API
void sfRenderWindow_setVisible(sfRenderWindow* renderWindow, sfBool visible);
218 CSFML_GRAPHICS_API
void sfRenderWindow_setVerticalSyncEnabled(sfRenderWindow* renderWindow, sfBool enabled);
227 CSFML_GRAPHICS_API
void sfRenderWindow_setMouseCursorVisible(sfRenderWindow* renderWindow, sfBool show);
242 CSFML_GRAPHICS_API
void sfRenderWindow_setMouseCursorGrabbed(sfRenderWindow* renderWindow, sfBool grabbed);
261 CSFML_GRAPHICS_API
void sfRenderWindow_setMouseCursor(sfRenderWindow* window,
const sfCursor* cursor);
272 CSFML_GRAPHICS_API
void sfRenderWindow_setKeyRepeatEnabled(sfRenderWindow* renderWindow, sfBool enabled);
281 CSFML_GRAPHICS_API
void sfRenderWindow_setFramerateLimit(sfRenderWindow* renderWindow,
unsigned int limit);
290 CSFML_GRAPHICS_API
void sfRenderWindow_setJoystickThreshold(sfRenderWindow* renderWindow,
float threshold);
301 CSFML_GRAPHICS_API sfBool sfRenderWindow_setActive(sfRenderWindow* renderWindow, sfBool active);
315 CSFML_GRAPHICS_API
void sfRenderWindow_requestFocus(sfRenderWindow* renderWindow);
327 CSFML_GRAPHICS_API sfBool sfRenderWindow_hasFocus(
const sfRenderWindow* renderWindow);
335 CSFML_GRAPHICS_API
void sfRenderWindow_display(sfRenderWindow* renderWindow);
345 CSFML_GRAPHICS_API sfWindowHandle sfRenderWindow_getSystemHandle(
const sfRenderWindow* renderWindow);
354 CSFML_GRAPHICS_API
void sfRenderWindow_clear(sfRenderWindow* renderWindow,
sfColor color);
363 CSFML_GRAPHICS_API
void sfRenderWindow_setView(sfRenderWindow* renderWindow,
const sfView* view);
373 CSFML_GRAPHICS_API
const sfView* sfRenderWindow_getView(
const sfRenderWindow* renderWindow);
383 CSFML_GRAPHICS_API
const sfView* sfRenderWindow_getDefaultView(
const sfRenderWindow* renderWindow);
394 CSFML_GRAPHICS_API
sfIntRect sfRenderWindow_getViewport(
const sfRenderWindow* renderWindow,
const sfView* view);
424 CSFML_GRAPHICS_API
sfVector2f sfRenderWindow_mapPixelToCoords(
const sfRenderWindow* renderWindow,
sfVector2i point,
const sfView* view);
450 CSFML_GRAPHICS_API
sfVector2i sfRenderWindow_mapCoordsToPixel(
const sfRenderWindow* renderWindow,
sfVector2f point,
const sfView* view);
460 CSFML_GRAPHICS_API
void sfRenderWindow_drawSprite(sfRenderWindow* renderWindow,
const sfSprite*
object,
const sfRenderStates* states);
461 CSFML_GRAPHICS_API
void sfRenderWindow_drawText(sfRenderWindow* renderWindow,
const sfText*
object,
const sfRenderStates* states);
462 CSFML_GRAPHICS_API
void sfRenderWindow_drawShape(sfRenderWindow* renderWindow,
const sfShape*
object,
const sfRenderStates* states);
463 CSFML_GRAPHICS_API
void sfRenderWindow_drawCircleShape(sfRenderWindow* renderWindow,
const sfCircleShape*
object,
const sfRenderStates* states);
464 CSFML_GRAPHICS_API
void sfRenderWindow_drawConvexShape(sfRenderWindow* renderWindow,
const sfConvexShape*
object,
const sfRenderStates* states);
465 CSFML_GRAPHICS_API
void sfRenderWindow_drawRectangleShape(sfRenderWindow* renderWindow,
const sfRectangleShape*
object,
const sfRenderStates* states);
466 CSFML_GRAPHICS_API
void sfRenderWindow_drawVertexArray(sfRenderWindow* renderWindow,
const sfVertexArray*
object,
const sfRenderStates* states);
467 CSFML_GRAPHICS_API
void sfRenderWindow_drawVertexBuffer(sfRenderWindow* renderWindow,
const sfVertexBuffer*
object,
const sfRenderStates* states);
479 CSFML_GRAPHICS_API
void sfRenderWindow_drawPrimitives(sfRenderWindow* renderWindow,
480 const sfVertex* vertices,
size_t vertexCount,
504 CSFML_GRAPHICS_API
void sfRenderWindow_pushGLStates(sfRenderWindow* renderWindow);
515 CSFML_GRAPHICS_API
void sfRenderWindow_popGLStates(sfRenderWindow* renderWindow);
529 CSFML_GRAPHICS_API
void sfRenderWindow_resetGLStates(sfRenderWindow* renderWindow);
556 CSFML_GRAPHICS_API CSFML_DEPRECATED sfImage* sfRenderWindow_capture(
const sfRenderWindow* renderWindow);
569 CSFML_GRAPHICS_API
sfVector2i sfMouse_getPositionRenderWindow(
const sfRenderWindow* relativeTo);
581 CSFML_GRAPHICS_API
void sfMouse_setPositionRenderWindow(
sfVector2i position,
const sfRenderWindow* relativeTo);
595 CSFML_GRAPHICS_API
sfVector2i sfTouch_getPositionRenderWindow(
unsigned int finger,
const sfRenderWindow* relativeTo);
598 #endif // SFML_RENDERWINDOW_H