2019-01-20 04:49:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/AKString.h>
|
2019-03-06 12:52:41 +01:00
|
|
|
#include <AK/Function.h>
|
2019-05-24 17:11:42 +02:00
|
|
|
#include <LibGUI/GAbstractButton.h>
|
2019-01-20 04:49:48 +01:00
|
|
|
|
2019-05-24 17:11:42 +02:00
|
|
|
class GCheckBox : public GAbstractButton {
|
2019-01-20 04:49:48 +01:00
|
|
|
public:
|
2019-06-02 14:58:02 +02:00
|
|
|
GCheckBox(const StringView&, GWidget* parent);
|
2019-01-20 04:49:48 +01:00
|
|
|
explicit GCheckBox(GWidget* parent);
|
|
|
|
virtual ~GCheckBox() override;
|
|
|
|
|
2019-05-24 17:11:42 +02:00
|
|
|
virtual void click() override;
|
2019-03-06 12:52:41 +01:00
|
|
|
|
2019-03-16 12:57:04 +01:00
|
|
|
virtual const char* class_name() const override { return "GCheckBox"; }
|
|
|
|
|
2019-01-20 04:49:48 +01:00
|
|
|
private:
|
2019-01-21 00:46:08 +01:00
|
|
|
virtual void paint_event(GPaintEvent&) override;
|
2019-01-20 04:49:48 +01:00
|
|
|
};
|