mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
Rename all the LibGUI classes to GClassName.
This commit is contained in:
parent
a026da47e7
commit
b91479d9b9
33 changed files with 623 additions and 581 deletions
26
LibGUI/GCheckBox.h
Normal file
26
LibGUI/GCheckBox.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "GWidget.h"
|
||||
#include <AK/AKString.h>
|
||||
|
||||
class GCheckBox final : public GWidget {
|
||||
public:
|
||||
explicit GCheckBox(GWidget* parent);
|
||||
virtual ~GCheckBox() override;
|
||||
|
||||
String caption() const { return m_caption; }
|
||||
void setCaption(String&&);
|
||||
|
||||
bool isChecked() const { return m_isChecked; }
|
||||
void setIsChecked(bool);
|
||||
|
||||
private:
|
||||
virtual void paintEvent(GPaintEvent&) override;
|
||||
virtual void mouseDownEvent(GMouseEvent&) override;
|
||||
|
||||
virtual const char* class_name() const override { return "GCheckBox"; }
|
||||
|
||||
String m_caption;
|
||||
bool m_isChecked { false };
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue