summaryrefslogtreecommitdiff
path: root/lib/icon_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/icon_buffer.h')
-rw-r--r--lib/icon_buffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/icon_buffer.h b/lib/icon_buffer.h
index 75bf54c8..ba34faa2 100644
--- a/lib/icon_buffer.h
+++ b/lib/icon_buffer.h
@@ -8,6 +8,7 @@
#define ICONBUFFER_H_INCLUDED
#include <memory>
+#include <wx/bitmap.h>
#include <wx/icon.h>
#include <zen/zstring.h>
@@ -27,11 +28,12 @@ public:
IconBuffer(IconSize sz);
~IconBuffer();
+ static int getSize(IconSize icoSize); //*maximum* icon size in pixel
+ int getSize() const { return getSize(icoSize); } //
+
const wxIcon& genericFileIcon() { return genFileIcon; }
const wxIcon& genericDirIcon () { return genDirIcon; }
- int getSize() const; //*maximum* icon size in pixel
-
bool requestFileIcon(const Zstring& filename, wxIcon* icon = nullptr); //returns false if icon is not in buffer
void setWorkload(const std::vector<Zstring>& load); //(re-)set new workload of icons to be retrieved;
bgstack15