mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibGUI: Add a simple GGroupBox widget.
This needs some work on the visual side, but it gets the job done already.
This commit is contained in:
parent
b980c32662
commit
f6543c5946
5 changed files with 65 additions and 10 deletions
19
LibGUI/GGroupBox.h
Normal file
19
LibGUI/GGroupBox.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GGroupBox : public GWidget {
|
||||
public:
|
||||
GGroupBox(const String& name, GWidget* parent);
|
||||
virtual ~GGroupBox() override;
|
||||
|
||||
String name() const { return m_name; }
|
||||
|
||||
virtual const char* class_name() const override { return "GGroupBox"; }
|
||||
|
||||
protected:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
private:
|
||||
String m_name;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue