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
An abstract base class representing a GUI widget.
Definition: Widget.hpp:21
std::string _name
The name of the widget.
Definition: Widget.hpp:37
virtual void draw()=0
Abstract method to draw the widget.
Widget(std::string name)
Constructor to create a widget with a specified name.
Definition: Widget.cpp:5
Definition: Entity.cpp:3