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

#include <InspectorWidget.hpp>

Inheritance diagram for shkyera::InspectorWidget:
[legend]

Classes

class  AssetInspector
 
class  MaterialInspector
 
class  TextureInspector
 

Public Member Functions

 InspectorWidget (std::string name, std::shared_ptr< Registry > registry)
 
virtual void draw () override
 Implementation of the abstract draw method to render the profiler 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

bool updateAssetSelection ()
 
template<typename AssetType , typename InspectorType >
bool tryResetInspector ()
 

Private Attributes

std::shared_ptr< Registry_registry
 
std::optional< AssetHandle_selectedAsset
 
std::unique_ptr< AssetInspector_assetInspector
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ InspectorWidget()

shkyera::InspectorWidget::InspectorWidget ( std::string  name,
std::shared_ptr< Registry registry 
)

Member Function Documentation

◆ draw()

void shkyera::InspectorWidget::draw ( )
overridevirtual

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

Implements shkyera::Widget.

◆ tryResetInspector()

bool shkyera::InspectorWidget::tryResetInspector ( )
inlineprivate

◆ updateAssetSelection()

bool shkyera::InspectorWidget::updateAssetSelection ( )
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

◆ _assetInspector

std::unique_ptr<AssetInspector> shkyera::InspectorWidget::_assetInspector
private

◆ _registry

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

◆ _selectedAsset

std::optional<AssetHandle> shkyera::InspectorWidget::_selectedAsset
private

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