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. More... | |
virtual void | draw ()=0 |
Abstract method to draw the widget. More... | |
Public Attributes | |
std::string | _name |
The name of the widget. More... | |
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. |
|
pure virtual |
Abstract method to draw the widget.
This method must be implemented by derived classes to render the widget on the screen.
Implemented in shkyera::SceneWidget, shkyera::PropertiesWidget, shkyera::PreviewWidget, shkyera::ObjectsWidget, shkyera::FilesystemWidget, and shkyera::ConsoleWidget.
std::string shkyera::Widget::_name |
The name of the widget.