mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibGUI: Add a GFrame class that can be inherited by framey widgets.
This will gather the code for painting sunken/raised frames etc in a single place and make it easier add a bit of pleasant shading to UI's. :^)
This commit is contained in:
parent
b6c5bd3d28
commit
cb296ffede
7 changed files with 110 additions and 12 deletions
|
@ -1,12 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include "GWidget.h"
|
||||
#include <AK/AKString.h>
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GFrame.h>
|
||||
#include <SharedGraphics/TextAlignment.h>
|
||||
|
||||
class GraphicsBitmap;
|
||||
|
||||
class GLabel final : public GWidget {
|
||||
class GLabel final : public GFrame {
|
||||
public:
|
||||
explicit GLabel(GWidget* parent);
|
||||
GLabel(const String& text, GWidget* parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue