summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Icon.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/Icon.h')
-rw-r--r--Libraries/LibGUI/Icon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Icon.h b/Libraries/LibGUI/Icon.h
index 2f18ba3456..7aedbe2938 100644
--- a/Libraries/LibGUI/Icon.h
+++ b/Libraries/LibGUI/Icon.h
@@ -41,6 +41,14 @@ public:
const Gfx::Bitmap* bitmap_for_size(int) const;
void set_bitmap_for_size(int, RefPtr<Gfx::Bitmap>&&);
+ Vector<int> sizes() const
+ {
+ Vector<int> sizes;
+ for (auto& it : m_bitmaps)
+ sizes.append(it.key);
+ return sizes;
+ }
+
private:
IconImpl() { }
HashMap<int, RefPtr<Gfx::Bitmap>> m_bitmaps;
@@ -69,6 +77,8 @@ public:
const IconImpl& impl() const { return *m_impl; }
+ Vector<int> sizes() const { return m_impl->sizes(); }
+
private:
NonnullRefPtr<IconImpl> m_impl;
};