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

Implement basic focus.

This commit is contained in:
Andreas Kling 2018-10-13 17:52:47 +02:00
parent 44a32039be
commit 1929cb6b71
6 changed files with 45 additions and 4 deletions

View file

@ -1,8 +1,9 @@
#pragma once
#include <AK/String.h>
#include "Object.h"
#include "Rect.h"
#include <AK/String.h>
#include <AK/WeakPtr.h>
class Widget;
@ -39,10 +40,15 @@ public:
bool isActive() const;
Widget* focusedWidget() { return m_focusedWidget.ptr(); }
void setFocusedWidget(Widget*);
private:
String m_title;
Rect m_rect;
Widget* m_mainWidget { nullptr };
bool m_isBeingDragged { false };
WeakPtr<Widget> m_focusedWidget;
};