Skip to content
Snippets Groups Projects
Select Git revision
  • b8b82252279ddcf7f4905b73cef4d9afa5b9f204
  • main default protected
2 results

widget.h

Blame
  • widget.h 317 B
    #ifndef WIDGET_H
    #define WIDGET_H
    #include "graphics.hpp"
    
    class Palya;
    
    class Widget{
    protected:
        int x,y,w,h;
        Palya* p;
    public:
        Widget(Palya* _p, int _x, int _y, int _w, int _h);
        bool hozzaer(genv::event ev);
        bool select(genv::event ev);
        virtual void draw() = 0;
    };
    
    #endif