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:
parent
1aa8f73ddb
commit
1c18261f8b
2 changed files with 12 additions and 0 deletions
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue