![]() |
Shkyera Engine
Easy to use, game engine for Python
|
A user interface widget for managing game objects. More...
#include <ObjectsWidget.hpp>
Public Member Functions | |
ObjectsWidget (std::string name) | |
void | setRegistry (std::shared_ptr< Registry > registry) |
Set the game to associate with this widget. | |
virtual void | draw () override |
Implementation of the abstract draw method to render the game objects widget. | |
Widget (std::string name) | |
Constructor to create a widget with a specified name. | |
![]() | |
Widget (std::string name) | |
Constructor to create a widget with a specified name. | |
virtual | ~Widget ()=default |
Default virtual destructor. | |
Private Member Functions | |
void | drawCreate () |
Draw the creation panel for new game objects. | |
void | drawObjectHierarchy (Entity parent, const EntityHierarchy &hierarchy, size_t depth) |
Draw the list of game objects and allow selection. | |
Private Attributes | |
std::shared_ptr< Registry > | _registry |
std::vector< std::function< void(Entity)> > | _onNewEntityCallbacks |
Entity | _draggedEntity |
Additional Inherited Members | |
![]() | |
std::string | _name |
The name of the widget. | |
A user interface widget for managing game objects.
The ObjectsWidget
class provides a graphical user interface for creating, listing, and selecting game objects.
shkyera::ObjectsWidget::ObjectsWidget | ( | std::string | name | ) |
|
overridevirtual |
Implementation of the abstract draw
method to render the game objects widget.
Implements shkyera::Widget.
|
private |
Draw the creation panel for new game objects.
|
private |
Draw the list of game objects and allow selection.
Set the game to associate with this widget.
registry | A shared pointer to the registry to associate with this widget. |
shkyera::Widget::Widget | ( | std::string | name | ) |
Constructor to create a widget with a specified name.
name | The name of the widget. |
|
private |
|
private |