mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:52:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			568 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 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;
 | |
| };
 | 
