ladybird/Libraries/LibGUI/GCheckBox.h
2019-09-21 18:58:48 +02:00

24 lines
568 B
C++

#pragma once
#include <AK/String.h>
#include <AK/Function.h>
#include <LibGUI/GAbstractButton.h>
class GCheckBox : public GAbstractButton {
C_OBJECT(GCheckBox)
public:
virtual ~GCheckBox() override;
virtual void click() override;
private:
GCheckBox(const StringView&, GWidget* parent);
explicit GCheckBox(GWidget* parent);
// 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;
};