Shkyera Engine
Easy to use, game engine for Python
shkyera::Widget Class Referenceabstract

An abstract base class representing a GUI widget. More...

#include <Widget.hpp>

Inheritance diagram for shkyera::Widget:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Widget()

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

Constructor to create a widget with a specified name.

Parameters
nameThe name of the widget.

Member Function Documentation

◆ draw()

virtual void shkyera::Widget::draw ( )
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.

Member Data Documentation

◆ _name

std::string shkyera::Widget::_name

The name of the widget.


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