Loading...
Searching...
No Matches
WindowBase.h
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
71CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, sfUint32 style);
89CSFML_WINDOW_API sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfUint32* title, sfUint32 style);
234CSFML_WINDOW_API void sfWindowBase_setUnicodeTitle(sfWindowBase* windowBase, const sfUint32* title);
248CSFML_WINDOW_API void sfWindowBase_setIcon(sfWindowBase* windowBase, unsigned int width, unsigned int height, const sfUint8* pixels);
266CSFML_WINDOW_API void sfWindowBase_setMouseCursorVisible(sfWindowBase* windowBase, sfBool visible);
281CSFML_WINDOW_API void sfWindowBase_setMouseCursorGrabbed(sfWindowBase* windowBase, sfBool grabbed);
301CSFML_WINDOW_API void sfWindowBase_setMouseCursor(sfWindowBase* windowBase, const sfCursor* cursor);
316CSFML_WINDOW_API void sfWindowBase_setKeyRepeatEnabled(sfWindowBase* windowBase, sfBool enabled);
328CSFML_WINDOW_API void sfWindowBase_setJoystickThreshold(sfWindowBase* windowBase, float threshold);
382CSFML_WINDOW_API sfBool sfWindowBase_createVulkanSurface(sfWindowBase* windowBase, const VkInstance* instance, VkSurfaceKHR* surface, const VkAllocationCallbacks* allocator);
sfVector2i sfWindowBase_getPosition(const sfWindowBase *windowBase)
Get the position of a window.
sfBool sfWindowBase_createVulkanSurface(sfWindowBase *windowBase, const VkInstance *instance, VkSurfaceKHR *surface, const VkAllocationCallbacks *allocator)
Create a Vulkan rendering surface.
void sfWindowBase_setKeyRepeatEnabled(sfWindowBase *windowBase, sfBool enabled)
Enable or disable automatic key-repeat.
void sfWindowBase_setSize(sfWindowBase *windowBase, sfVector2u size)
Change the size of the rendering region of a window.
sfBool sfWindowBase_isOpen(const sfWindowBase *windowBase)
Tell whether or not a window is opened.
void sfWindowBase_close(sfWindowBase *windowBase)
Close a window and destroy all the attached resources.
sfVector2u sfWindowBase_getSize(const sfWindowBase *windowBase)
Get the size of the rendering region of a window.
void sfWindowBase_setIcon(sfWindowBase *windowBase, unsigned int width, unsigned int height, const sfUint8 *pixels)
Change a window's icon.
@ sfFullscreen
Fullscreen mode (this flag and all others are mutually exclusive)
Definition WindowBase.h:50
@ sfNone
No border / title bar (this flag and all others are mutually exclusive)
Definition WindowBase.h:46
void sfWindowBase_setMouseCursorGrabbed(sfWindowBase *windowBase, sfBool grabbed)
Grab or release the mouse cursor.
sfBool sfWindowBase_hasFocus(const sfWindowBase *windowBase)
Check whether the window has the input focus.
sfWindowHandle sfWindowBase_getSystemHandle(const sfWindowBase *windowBase)
Get the OS-specific handle of the window.
sfWindowBase * sfWindowBase_createFromHandle(sfWindowHandle handle)
Construct a window from an existing control.
void sfWindowBase_setPosition(sfWindowBase *windowBase, sfVector2i position)
Change the position of a window on screen.
void sfWindowBase_setTitle(sfWindowBase *windowBase, const char *title)
Change the title of a window.
void sfWindowBase_requestFocus(sfWindowBase *windowBase)
Request the current window to be made the active foreground window.
void sfWindowBase_setJoystickThreshold(sfWindowBase *windowBase, float threshold)
Change the joystick threshold.
sfBool sfWindowBase_waitEvent(sfWindowBase *windowBase, sfEvent *event)
Wait for an event and return it.
void sfWindowBase_setMouseCursor(sfWindowBase *windowBase, const sfCursor *cursor)
Set the displayed cursor to a native system cursor.
void sfWindowBase_setVisible(sfWindowBase *windowBase, sfBool visible)
Show or hide a window.
sfBool sfWindowBase_pollEvent(sfWindowBase *windowBase, sfEvent *event)
Pop the event on top of event queue, if any, and return it.
void sfWindowBase_setMouseCursorVisible(sfWindowBase *windowBase, sfBool visible)
Show or hide the mouse cursor.
sfWindowBase * sfWindowBase_createUnicode(sfVideoMode mode, const sfUint32 *title, sfUint32 style)
Construct a new window (with a UTF-32 title)
sfWindowBase * sfWindowBase_create(sfVideoMode mode, const char *title, sfUint32 style)
Construct a new window.
void sfWindowBase_setUnicodeTitle(sfWindowBase *windowBase, const sfUint32 *title)
Change the title of a window (with a UTF-32 string)
sfVideoMode defines a video mode (width, height, bpp, frequency) and provides functions for getting m...
Definition VideoMode.h:42