1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

VisualBuilder: Add the first VBWidget subclass: VBButtonWidget. :^)

This commit is contained in:
Andreas Kling 2019-04-11 02:49:10 +02:00
parent d73f79a2d2
commit ead6524c0a
8 changed files with 73 additions and 11 deletions

View file

@ -35,11 +35,14 @@ public:
Rect grabber_rect(Direction) const;
Direction grabber_at(const Point&) const;
void paint(GPainter&);
virtual void paint(GPainter&);
virtual const char* gwidget_name() const { return "GWidget"; }
protected:
explicit VBWidget(VBForm&);
private:
VBWidget(VBForm&);
VBForm& m_form;
Rect m_rect;
};