Loading...
Searching...
No Matches
WindowBase.hpp
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.
407 bool createVulkanSurface(const VkInstance& instance, VkSurfaceKHR& surface, const VkAllocationCallbacks* allocator = 0);
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:46
void setMouseCursorGrabbed(bool grabbed)
Grab or release the mouse cursor.
void setMouseCursor(const Cursor &cursor)
Set the displayed cursor to a native system cursor.
virtual void create(VideoMode mode, const String &title, Uint32 style=Style::Default)
Create (or recreate) the window.
void requestFocus()
Request the current window to be made the active foreground window.
bool createVulkanSurface(const VkInstance &instance, VkSurfaceKHR &surface, const VkAllocationCallbacks *allocator=0)
Create a Vulkan rendering surface.
virtual void create(WindowHandle handle)
Create (or recreate) the window from an existing control.
bool pollEvent(Event &event)
Pop the event on top of the event queue, if any, and return it.
void setSize(const Vector2u &size)
Change the size of the rendering region of the window.
WindowBase(VideoMode mode, const String &title, Uint32 style=Style::Default)
Construct a new window.
WindowBase(WindowHandle handle)
Construct the window from an existing control.
void setPosition(const Vector2i &position)
Change the position of the window on screen.
void setJoystickThreshold(float threshold)
Change the joystick threshold.
void setIcon(unsigned int width, unsigned int height, const Uint8 *pixels)
Change the window's icon.
WindowHandle getSystemHandle() const
Get the OS-specific handle of the window.
void setMouseCursorVisible(bool visible)
Show or hide the mouse cursor.
void setKeyRepeatEnabled(bool enabled)
Enable or disable automatic key-repeat.
platform specific WindowHandle
Define a low-level window handle type, specific to each platform.
Definition WindowHandle.hpp:68
Definition AlResource.hpp:35