192 virtual
void close();
204 [[nodiscard]]
bool isOpen() const;
226 [[nodiscard]] std::optional<
Event> pollEvent();
329 template <typename... Handlers>
330 void handleEvents(Handlers&&... handlers);
387 void setMinimumSize(const std::optional<
Vector2u>& minimumSize);
397 void setMaximumSize(const std::optional<
Vector2u>& maximumSize);
425 void setIcon(
Vector2u size, const std::uint8_t* pixels);
435 void setVisible(
bool visible);
448 void setMouseCursorVisible(
bool visible);
461 void setMouseCursorGrabbed(
bool grabbed);
479 void setMouseCursor(const
Cursor& cursor);
493 void setKeyRepeatEnabled(
bool enabled);
506 void setJoystickThreshold(
float threshold);
535 [[nodiscard]]
bool hasFocus() const;
561 [[nodiscard]]
bool createVulkanSurface(const
VkInstance& instance,
563 const VkAllocationCallbacks* allocator =
nullptr);
574 virtual
void onCreate();
583 virtual
void onResize();
600 void filterEvent(const
Event& event);
611 std::unique_ptr<priv::WindowImpl> m_impl;
617#include <SFML/Window/WindowBase.inl>
std::uint64_t VkSurfaceKHR
VkInstance_T * VkInstance
Cursor defines the appearance of a system cursor.
Defines a system event and its parameters.
Utility string class that automatically handles conversions between types and encodings.
VideoMode defines a video mode (size, bpp)
Window that serves as a base for other windows.
WindowBase()
Default constructor.
WindowBase(VideoMode mode, const String &title, State state)
Construct a new window.
WindowBase(const WindowBase &)=delete
Deleted copy constructor.
virtual ~WindowBase()
Destructor.
WindowBase(WindowHandle handle)
Construct the window from an existing control.
WindowBase(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed)
Construct a new window.
WindowBase(WindowBase &&) noexcept
Move constructor.
WindowBase & operator=(const WindowBase &)=delete
Deleted copy assignment.
Window that serves as a target for OpenGL rendering.
State
Enumeration of the window states.
"platform-specific" WindowHandle