mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
VisualBuilder: Start working on an interface builder application.
It's tedious making interfaces programmatically. Let's make a program to help us with this. :^)
This commit is contained in:
parent
0bc72551f4
commit
8268ece1bd
10 changed files with 156 additions and 0 deletions
20
Applications/VisualBuilder/VBForm.h
Normal file
20
Applications/VisualBuilder/VBForm.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <AK/Vector.h>
|
||||
#include "VBWidget.h"
|
||||
|
||||
class VBForm : public GWidget {
|
||||
public:
|
||||
explicit VBForm(const String& name, GWidget* parent = nullptr);
|
||||
virtual ~VBForm() override;
|
||||
|
||||
protected:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
private:
|
||||
String m_name;
|
||||
int m_grid_size { 5 };
|
||||
|
||||
Vector<VBWidget*> m_widgets;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue