#pragma once #include #include #include class GCheckBox : public GAbstractButton { C_OBJECT(GCheckBox) public: GCheckBox(const StringView&, GWidget* parent); explicit GCheckBox(GWidget* parent); virtual ~GCheckBox() override; virtual void click() override; private: // These don't make sense for a check box, so hide them. using GAbstractButton::auto_repeat_interval; using GAbstractButton::set_auto_repeat_interval; virtual void paint_event(GPaintEvent&) override; };