![]() |
Shkyera Engine
Easy to use, game engine for Python
|
An abstract base class representing a GUI widget. More...
#include <Widget.hpp>
Public Member Functions | |
Widget (std::string name) | |
Constructor to create a widget with a specified name. | |
virtual | ~Widget ()=default |
Default virtual destructor. | |
virtual void | draw ()=0 |
Abstract method to draw the widget. | |
Public Attributes | |
std::string | _name |
The name of the widget. | |
An abstract base class representing a GUI widget.
The Widget
class serves as a base class for various graphical user interface (GUI) widgets and defines a common interface for drawing them.
shkyera::Widget::Widget | ( | std::string | name | ) |
Constructor to create a widget with a specified name.
name | The name of the widget. |
|
virtualdefault |
Default virtual destructor.
Abstract method to draw the widget.
This method must be implemented by derived classes to render the widget on the screen.
Implemented in shkyera::ConsoleWidget, shkyera::FilesystemWidget, shkyera::InspectorWidget, shkyera::ObjectsWidget, shkyera::ProfilerWidget, shkyera::PropertiesWidget, shkyera::RuntimeWidget, and shkyera::SceneWidget.
std::string shkyera::Widget::_name |
The name of the widget.