mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
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.
This commit is contained in:
parent
d31b47b371
commit
04500c1ae2
3 changed files with 69 additions and 7 deletions
|
@ -18,6 +18,7 @@ public:
|
|||
virtual void event(CEvent&);
|
||||
|
||||
Vector<CObject*>& children() { return m_children; }
|
||||
const Vector<CObject*>& children() const { return m_children; }
|
||||
|
||||
CObject* parent() { return m_parent; }
|
||||
const CObject* parent() const { return m_parent; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue