mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Launcher: Factor the app buttons into a LaunchButton class.
Added some LibGUI helpers while I'm at it.
This commit is contained in:
parent
bf766fc12c
commit
6d7f000ffc
5 changed files with 39 additions and 36 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
|
||||
Rect rect() const;
|
||||
void set_rect(const Rect&);
|
||||
void set_rect(int x, int y, int width, int height) { set_rect({ x, y, width, height }); }
|
||||
|
||||
Point position() const { return rect().location(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue