1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

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
parent 4cf4a7cc87
commit 35cacb850a

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