1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +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:
Andreas Kling 2019-02-08 00:14:37 +01:00
parent bf766fc12c
commit 6d7f000ffc
5 changed files with 39 additions and 36 deletions

View file

@ -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(); }