Abstract class for window.
More...
#include <IWindow.hpp>
Abstract class for window.
Interface for window.
Definition at line 96 of file IWindow.hpp.
◆ ~IWindow()
| cae::IWindow::~IWindow |
( |
| ) |
|
|
overridedefault |
◆ close()
| virtual void cae::IWindow::close |
( |
| ) |
|
|
pure virtual |
◆ create()
| virtual bool cae::IWindow::create |
( |
const std::string & | name, |
|
|
WindowSize | size ) |
|
pure virtual |
Create a window with the given name and size.
- Parameters
-
| name | Window name |
| size | Window size |
- Returns
- True if the window was created successfully
Implemented in cae::GLFW.
◆ getNativeHandle()
Get the native window handle.
- Returns
- Native window handle
Implemented in cae::GLFW.
◆ getWindowSize()
| virtual WindowSize cae::IWindow::getWindowSize |
( |
| ) |
const |
|
pure virtual |
Get the current window size.
- Returns
- Current window size
Implemented in cae::GLFW.
◆ pollEvent()
| virtual bool cae::IWindow::pollEvent |
( |
WindowEvent & | outEvent | ) |
|
|
pure virtual |
Poll window events into outEvent.
- Parameters
-
| outEvent | Event to be filled |
- Returns
- True if an event was polled
Implemented in cae::GLFW.
◆ pollEvents()
| virtual void cae::IWindow::pollEvents |
( |
| ) |
|
|
pure virtual |
Poll window events.
Implemented in cae::GLFW.
◆ resetResizedFlag()
| virtual void cae::IWindow::resetResizedFlag |
( |
| ) |
|
|
pure virtual |
Reset the resized flag.
Implemented in cae::GLFW.
◆ setIcon()
| virtual void cae::IWindow::setIcon |
( |
const std::string & | path | ) |
const |
|
pure virtual |
Set the window icon from the given image path.
- Parameters
-
| path | Path to the icon image |
- Returns
- True if the icon was set successfully
Implemented in cae::GLFW.
◆ shouldClose()
| virtual bool cae::IWindow::shouldClose |
( |
| ) |
const |
|
pure virtual |
Check if the window should close.
- Returns
- True if the window should close
Implemented in cae::GLFW.
◆ wasResized()
| virtual bool cae::IWindow::wasResized |
( |
| ) |
const |
|
pure virtual |
Check if the window was resized.
- Returns
- True if the window was resized
Implemented in cae::GLFW.
The documentation for this interface was generated from the following file:
- modules/Interfaces/include/Interfaces/Window/IWindow.hpp