From 04500c1ae29c8ae5b59b8850b88afe1844548dce Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Apr 2019 03:47:55 +0200 Subject: GWidget: Add some new child z-ordering facilities. - child_at(Point) - move_to_front() - move_to_back() - is_frontmost() - is_backmost() This patch also makes it possible to receive the mouse event that triggers a context menu before the context menu is shown. I'm not sure this is the best design for context menus but it works for now. --- LibCore/CObject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'LibCore/CObject.h') diff --git a/LibCore/CObject.h b/LibCore/CObject.h index c94ed2f167..f8ae55a7b2 100644 --- a/LibCore/CObject.h +++ b/LibCore/CObject.h @@ -18,6 +18,7 @@ public: virtual void event(CEvent&); Vector& children() { return m_children; } + const Vector& children() const { return m_children; } CObject* parent() { return m_parent; } const CObject* parent() const { return m_parent; } -- cgit v1.2.3