Shkyera Engine
Easy to use, game engine for Python
Widget.hpp
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <GLFW/glfw3.h>
10
#include <cmath>
11
#include <string>
12
13
namespace
shkyera
{
14
21
class
Widget
{
22
public
:
28
Widget
(std::string name);
29
35
virtual
void
draw
() = 0;
36
37
std::string
_name
;
38
};
39
40
}
// namespace shkyera
shkyera::Widget
An abstract base class representing a GUI widget.
Definition:
Widget.hpp:21
shkyera::Widget::_name
std::string _name
The name of the widget.
Definition:
Widget.hpp:37
shkyera::Widget::draw
virtual void draw()=0
Abstract method to draw the widget.
shkyera::Widget::Widget
Widget(std::string name)
Constructor to create a widget with a specified name.
Definition:
Widget.cpp:5
shkyera
Definition:
Entity.cpp:3
src
ui
Widget.hpp
Generated by
1.9.1
Franciszek Szewczyk © 2023