81 virtual void set_title(
const std::string& title) = 0;
88 virtual void set_size(uint32_t width, uint32_t height) = 0;
virtual void set_input_config(const InputConfig &config)=0
Set input configuration (keyboard, mouse, cursor)
virtual const Vruta::EventSource & get_event_source() const =0
virtual void * get_native_display() const =0
Get native display handle (platform-specific)
virtual ~Window()=default
virtual void set_graphics_registered(bool registered)=0
Mark window as registered/unregistered with graphics Called by GraphicsSubsystem during register/unre...
virtual void set_event_callback(WindowEventCallback callback)=0
Set the callback function for window events.
virtual const WindowCreateInfo & get_create_info() const =0
virtual void hide()=0
Hide the window.
virtual void set_title(const std::string &title)=0
Set window title, size, or position.
virtual void * get_native_handle() const =0
Get native window handle (platform-specific)
virtual Vruta::EventSource & get_event_source()=0
Gets the event source for awaiting events.
virtual void set_size(uint32_t width, uint32_t height)=0
Resize the window.
virtual bool is_graphics_registered() const =0
Check if window is registered with graphics subsystem.
virtual const WindowState & get_state() const =0
Get the current window state.
virtual const InputConfig & get_input_config() const =0
Get current input configuration.
virtual void show()=0
Show the window.
virtual void set_position(uint32_t x, uint32_t y)=0
Move the window to a new position.
virtual bool should_close() const =0
Poll for window events (non-blocking)
Platform-agnostic window wrapper.
Awaitable event stream for window events.
std::function< void(const WindowEvent &)> WindowEventCallback
Configuration for creating a single window instance.
Runtime state of a window (mutable by system, read by user)