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