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

LibGUI: Allow Label icons to be set from GML

This is similar to dd17df76e9, which
did the same thing for the Button widget.
This commit is contained in:
Dylan Katz 2022-01-28 23:00:15 -08:00 committed by Andreas Kling
parent 1aa8f73ddb
commit 1c18261f8b
2 changed files with 12 additions and 0 deletions

View file

@ -22,6 +22,7 @@ public:
void set_text(String);
void set_icon(const Gfx::Bitmap*);
void set_icon_from_path(String const&);
const Gfx::Bitmap* icon() const { return m_icon.ptr(); }
Gfx::Bitmap* icon() { return m_icon.ptr(); }