Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
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.
 
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.
 

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.

◆ ~Widget()

virtual shkyera::Widget::~Widget ( )
virtualdefault

Default virtual destructor.

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::ConsoleWidget, shkyera::FilesystemWidget, shkyera::InspectorWidget, shkyera::ObjectsWidget, shkyera::ProfilerWidget, shkyera::PropertiesWidget, shkyera::RuntimeWidget, and shkyera::SceneWidget.

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: