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

More hacking on Widgets.

This commit is contained in:
Andreas Kling 2018-10-11 16:52:40 +02:00
parent c37ded0ae4
commit a4491e9630
9 changed files with 150 additions and 2 deletions

View file

@ -4,6 +4,7 @@
#include "Object.h"
#include "Rect.h"
#include "Color.h"
#include <AK/String.h>
class Widget : public Object {
public:
@ -45,10 +46,18 @@ public:
void setBackgroundColor(Color color) { m_backgroundColor = color; }
void setForegroundColor(Color color) { m_foregroundColor = color; }
bool isWindow() const { return m_isWindow; }
void setIsWindow(bool);
void setWindowTitle(String&&);
String windowTitle() const { return m_windowTitle; }
private:
Rect m_rect;
Color m_backgroundColor;
Color m_foregroundColor;
String m_windowTitle;
bool m_isWindow { false };
bool m_hasPendingPaintEvent { false };
};