Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
Widget.hpp
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <cmath>
10
#include <string>
11
12
#include <GLFW/glfw3.h>
13
#include <glad/glad.h>
14
15
namespace
shkyera
{
16
23
class
Widget
{
24
public
:
30
Widget
(std::string name);
31
35
virtual
~Widget
() =
default
;
36
42
virtual
void
draw
() = 0;
43
44
std::string
_name
;
45
};
46
47
}
// namespace shkyera
shkyera::Widget
An abstract base class representing a GUI widget.
Definition
Widget.hpp:23
shkyera::Widget::_name
std::string _name
The name of the widget.
Definition
Widget.hpp:44
shkyera::Widget::draw
virtual void draw()=0
Abstract method to draw the widget.
shkyera::Widget::~Widget
virtual ~Widget()=default
Default virtual destructor.
shkyera
Definition
Asset.hpp:6
src
ui
Widget.hpp
Generated by
1.9.8
Franciszek Szewczyk © 2023