132 virtual void setIcon(
const std::string &path)
const = 0;
This file contains the plugin interface.
This file contains the keyboard keys.
This file contains the mouse keys.
Abstract class for window.
virtual void close()=0
Close the window.
virtual WindowSize getWindowSize() const =0
Get the current window size.
virtual void setIcon(const std::string &path) const =0
Set the window icon from the given image path.
virtual bool shouldClose() const =0
Check if the window should close.
~IWindow() override=default
virtual bool wasResized() const =0
Check if the window was resized.
virtual void resetResizedFlag()=0
Reset the resized flag.
virtual NativeWindowHandle getNativeHandle() const =0
Get the native window handle.
virtual void pollEvents()=0
Poll window events.
virtual bool pollEvent(WindowEvent &outEvent)=0
Poll window events into outEvent.
virtual bool create(const std::string &name, WindowSize size)=0
Create a window with the given name and size.
WindowEventType
Enum for window event types.
Struct for native window handle.
Struct for window events.
struct cae::WindowEvent::@0::@6 resize
struct cae::WindowEvent::@0::@4 mouseButton
struct cae::WindowEvent::@0::@5 scroll
struct cae::WindowEvent::@0::@3 mouseMove