mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGUI: Add GIcon::default_icon(name).
This is a convenience helper to instantiate a GIcon like so: auto icon = GIcon::default_icon("filetype-image"); This will give you the "filetype-image" icon in both 16x16 and 32x32 sizes.
This commit is contained in:
parent
43bb7aad4c
commit
be604652ae
13 changed files with 16 additions and 7 deletions
|
@ -25,6 +25,8 @@ public:
|
|||
GIcon(const GIcon&);
|
||||
~GIcon() { }
|
||||
|
||||
static GIcon default_icon(const String&);
|
||||
|
||||
GIcon& operator=(const GIcon& other)
|
||||
{
|
||||
m_impl = other.m_impl.copy_ref();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue