Skip to content
Snippets Groups Projects
Commit dabd04fa authored by Horváth Ádám's avatar Horváth Ádám
Browse files

lehet végleges

parent 44b995f6
No related branches found
No related tags found
No related merge requests found
#ifndef CHECKBOX_HPP_INCLUDED
#define CHECKBOX_HPP_INCLUDED
#include "widgets.hpp"
#include "application.hpp"
class CheckBox : public Widget {
private:
bool _checked;
int _value;
int playerValue;
public:
CheckBox(Application *parent, int x, int y, int sx, int sy);
void draw() override;
void handle(genv::event ev) override;
bool is_checked() override;
void value(int) override;
int value_sz() override;
int getPlayerValue() const override;
private:
void drawCross(int x, int y, int width, int height, int r, int g, int b);
void drawCircle(int x, int y, int radius, int r, int g, int b);
};
#endif // CHECKBOX_HPP_INCLUDED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment