LibGUI: Add a const accessor to ImageWidget's bitmap

This commit is contained in:
Timothy Flynn 2022-02-02 15:18:02 -05:00 committed by Andreas Kling
commit 35cacb850a
Notes: sideshowbarker 2024-07-17 19:51:25 +09:00

View file

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