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

LibGUI+FileManager: Add a GIcon class to support multi-size icons.

A GIcon can contain any number of bitmaps internally, and will give you
the best fitting icon when you call bitmap_for_size().
This commit is contained in:
Andreas Kling 2019-03-24 04:28:36 +01:00
parent 7e54fdce99
commit 86413a6f5a
12 changed files with 165 additions and 23 deletions

View file

@ -75,6 +75,7 @@ public:
#endif
return *m_bucket_iterator;
}
T* operator->() { return m_bucket_iterator.operator->(); }
Iterator& operator++()
{
skip_to_next();
@ -151,6 +152,7 @@ public:
#endif
return *m_bucket_iterator;
}
const T* operator->() const { return m_bucket_iterator.operator->(); }
ConstIterator& operator++()
{
skip_to_next();