mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI+WindowServer: Allow applets to retrieve their location
MenuApplet windows can now call rect_in_menubar to return their location in the MenuBar.
This commit is contained in:
committed by
Andreas Kling
parent
030f4150b8
commit
c50f258b7a
@@ -107,6 +107,7 @@ public:
|
||||
int height() const { return rect().height(); }
|
||||
|
||||
Gfx::IntRect rect() const;
|
||||
Gfx::IntRect rect_in_menubar() const;
|
||||
Gfx::IntSize size() const { return rect().size(); }
|
||||
void set_rect(const Gfx::IntRect&);
|
||||
void set_rect(int x, int y, int width, int height) { set_rect({ x, y, width, height }); }
|
||||
|
||||
Reference in New Issue
Block a user