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:
Andreas Kling 2019-03-28 15:30:29 +01:00
commit cb296ffede
Notes: sideshowbarker 2024-07-19 14:55:09 +09:00
7 changed files with 110 additions and 12 deletions

View file

@ -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);