From 35cacb850a25bcec59dd6936fa74ebd776890674 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 2 Feb 2022 15:18:02 -0500 Subject: [PATCH] LibGUI: Add a const accessor to ImageWidget's bitmap --- Userland/Libraries/LibGUI/ImageWidget.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGUI/ImageWidget.h b/Userland/Libraries/LibGUI/ImageWidget.h index 8acae2c23e..6cee2aab41 100644 --- a/Userland/Libraries/LibGUI/ImageWidget.h +++ b/Userland/Libraries/LibGUI/ImageWidget.h @@ -18,6 +18,7 @@ public: void set_bitmap(const Gfx::Bitmap*); Gfx::Bitmap* bitmap() { return m_bitmap.ptr(); } + Gfx::Bitmap const* bitmap() const { return m_bitmap.ptr(); } void set_should_stretch(bool value) { m_should_stretch = value; } bool should_stretch() const { return m_should_stretch; }