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
15namespace shkyera {
16
23class 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
An abstract base class representing a GUI widget.
Definition Widget.hpp:23
std::string _name
The name of the widget.
Definition Widget.hpp:44
virtual void draw()=0
Abstract method to draw the widget.
virtual ~Widget()=default
Default virtual destructor.
Definition Asset.hpp:6