class
SimpleWindowContents
Base classes
- class Window
- Abstract base class for windows.
Derived classes
- class SimpleWindow2D
- A Window with only 1 View in 2D mode.
- class SimpleWindow3D
- A Window with only 1 View in 3D mode.
Constructors, destructors, conversion operators
Public functions
- auto create(bool mode2D, Color bgcolor, uint width, uint height) -> std::shared_ptr<SimpleWindow>
- void addRenderer(std::shared_ptr<Renderer> renderer)
- void addWidget(QWidget* widget)
- void removeAllRenderers()
- void setMaximumFramerate(unsigned int framerate)
- auto getView() -> View*
- auto connect(std::shared_ptr<Renderer> renderer) -> std::shared_ptr<SimpleWindow>
- auto connect(std::vector<std::shared_ptr<Renderer>> renderers) -> std::shared_ptr<SimpleWindow>
-
auto connect(QWidget* widget,
WidgetPosition position = WidgetPosition::
BOTTOM) -> std::shared_ptr<SimpleWindow> -
auto connect(std::vector<QWidget*> widgets,
WidgetPosition position = WidgetPosition::
BOTTOM) -> std::shared_ptr<SimpleWindow>
Protected functions
- void init()
Function documentation
std::shared_ptr<SimpleWindow> fast:: SimpleWindow:: create(bool mode2D,
Color bgcolor,
uint width,
uint height)
Parameters | |
---|---|
mode2D | 2D or 3D mode |
bgcolor | Background color |
width | in pixels |
height | in pixels |
Returns | shared ptr of new SimpleWindow |
Create a SimpleWindow object
Args: