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

widget.h

Blame
  • widget.h 319 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