ladybird/Libraries/LibGUI/GCheckBox.h
Andreas Kling 73fdbba59c AK: Rename <AK/AKString.h> to <AK/String.h>
This was a workaround to be able to build on case-insensitive file
systems where it might get confused about <string.h> vs <String.h>.

Let's just not support building that way, so String.h can have an
objectively nicer name. :^)
2019-09-06 15:36:54 +02:00

22 lines
567 B
C++

#pragma once
#include <AK/String.h>
#include <AK/Function.h>
#include <LibGUI/GAbstractButton.h>
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;
};