aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Widget.hpp
blob: 53543fc3c5d306f6a9731690fb1c128417066591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef WIDGET_HPP
#define WIDGET_HPP

#include <SFML/Graphics.hpp>

struct Widget
{
public:
    int x;
    int y;
    unsigned width;
    unsigned height;

    Widget() = delete;
    virtual void render();

protected:
    sf::RenderWindow &_window;   

    Widget(sf::RenderWindow &window) : _window(window) {}
};

#endif