#ifndef CHECKBOX_H_INCLUDED
#define CHECKBOX_H_INCLUDED

#include "graphics.hpp"
#include "color.h"
#include "widget.h"
#include "label.h"

/// Kipipálós mezõ

class checkBox : public widget
{
protected:
    label *myLabel;
    const int boxX = 5, boxY = 5;
    const int boxW = 20, boxH = 20;

public:
    bool checked;
    checkBox(float x0, float y0, float width0, float height0);
    void setText(std::string txt);
    std::string getText() const;
    void onClick(float posX, float posY, char button);
    void onKeyPress(int keyCode);
    void draw() const;
};

#endif // CHECKBOX_H_INCLUDED
