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:
parent
7e54fdce99
commit
86413a6f5a
12 changed files with 165 additions and 23 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue