diff --git a/Libraries/LibCore/CObject.h b/Libraries/LibCore/CObject.h index 392a94e189..038dc93ca8 100644 --- a/Libraries/LibCore/CObject.h +++ b/Libraries/LibCore/CObject.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -18,6 +19,9 @@ public: virtual void event(CEvent&); + const String& name() const { return m_name; } + void set_name(const StringView& name) { m_name = name; } + Vector& children() { return m_children; } const Vector& children() const { return m_children; } @@ -58,6 +62,7 @@ protected: private: CObject* m_parent { nullptr }; + String m_name; int m_timer_id { 0 }; bool m_widget { false }; Vector m_children;