summaryrefslogtreecommitdiff
path: root/lib/icon_buffer.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /lib/icon_buffer.h
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
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