Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::RuntimeWidget Class Reference

A user interface widget for running and rendering the game runtime. More...

#include <RuntimeWidget.hpp>

Inheritance diagram for shkyera::RuntimeWidget:
[legend]

Public Member Functions

 RuntimeWidget (std::shared_ptr< Registry > registry)
 
virtual void draw () override
 Implementation of the abstract draw method to render the runtime widget.
 
 Widget (std::string name)
 Constructor to create a widget with a specified name.
 
- Public Member Functions inherited from shkyera::Widget
 Widget (std::string name)
 Constructor to create a widget with a specified name.
 
virtual ~Widget ()=default
 Default virtual destructor.
 

Private Member Functions

void updateWindowCoordinateSystem ()
 

Private Attributes

std::shared_ptr< Registry_registry
 
std::unique_ptr< Registry_storedRegistry
 
AssetRef< Texture_playButtonTexture
 
AssetRef< Texture_stopButtonTexture
 

Additional Inherited Members

- Public Attributes inherited from shkyera::Widget
std::string _name
 The name of the widget.
 

Detailed Description

A user interface widget for running and rendering the game runtime.

The RuntimeWidget class provides a graphical user interface widget for rendering and contrlling the runtime

Constructor & Destructor Documentation

◆ RuntimeWidget()

shkyera::RuntimeWidget::RuntimeWidget ( std::shared_ptr< Registry registry)

Member Function Documentation

◆ draw()

void shkyera::RuntimeWidget::draw ( )
overridevirtual

Implementation of the abstract draw method to render the runtime widget.

Implements shkyera::Widget.

◆ updateWindowCoordinateSystem()

void shkyera::RuntimeWidget::updateWindowCoordinateSystem ( )
private

◆ Widget()

shkyera::Widget::Widget ( std::string  name)

Constructor to create a widget with a specified name.

Parameters
nameThe name of the widget.

Member Data Documentation

◆ _playButtonTexture

AssetRef<Texture> shkyera::RuntimeWidget::_playButtonTexture
private

◆ _registry

std::shared_ptr<Registry> shkyera::RuntimeWidget::_registry
private

◆ _stopButtonTexture

AssetRef<Texture> shkyera::RuntimeWidget::_stopButtonTexture
private

◆ _storedRegistry

std::unique_ptr<Registry> shkyera::RuntimeWidget::_storedRegistry
private

The documentation for this class was generated from the following files: