diff options
author | Nick Johnson <sylvyrfysh@gmail.com> | 2021-03-11 15:43:01 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-22 12:46:16 +0100 |
commit | 8f6894d25077d82f01cbea310467e4d5eb56d311 (patch) | |
tree | 3906fb4adfb6f303fc567062717c6f2275130e5f /Userland/Services/NotificationServer/NotificationWindow.h | |
parent | 147a2c4ca26e88c76557b59cb1e1dc6486d188fd (diff) | |
download | serenity-8f6894d25077d82f01cbea310467e4d5eb56d311.zip |
LibGUI+Notification: Add mutable notifications
This commit puts all of the remaining pieces in place. This adds a
mechanism to update the text, title, and icon of an image. If an image
is not provided, the default ladybug will be shown.
Diffstat (limited to 'Userland/Services/NotificationServer/NotificationWindow.h')
-rw-r--r-- | Userland/Services/NotificationServer/NotificationWindow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/NotificationServer/NotificationWindow.h b/Userland/Services/NotificationServer/NotificationWindow.h index 206e57d085..a02894e2cb 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.h +++ b/Userland/Services/NotificationServer/NotificationWindow.h @@ -40,6 +40,10 @@ public: virtual ~NotificationWindow() override; void set_original_rect(Gfx::IntRect original_rect) { m_original_rect = original_rect; }; + void set_text(const String&); + void set_title(const String&); + void set_image(const Gfx::ShareableBitmap&); + static RefPtr<NotificationWindow> get_window_by_id(i32 id); private: |