summaryrefslogtreecommitdiff
path: root/lib/osx_file_icon.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
commit75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch)
tree8853c3978dd152ef377e652239448b1352320206 /lib/osx_file_icon.h
parent5.22 (diff)
downloadFreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip
5.23
Diffstat (limited to 'lib/osx_file_icon.h')
-rw-r--r--lib/osx_file_icon.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/osx_file_icon.h b/lib/osx_file_icon.h
deleted file mode 100644
index 5edfd740..00000000
--- a/lib/osx_file_icon.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// **************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
-// **************************************************************************
-
-#ifndef OSX_FILE_ICON_8427508422345342
-#define OSX_FILE_ICON_8427508422345342
-
-#include <vector>
-#include <zen/sys_error.h>
-
-namespace osx
-{
-struct ImageData
-{
- ImageData(int w, int h) : width(w), height(h), rgb(w* h * 3), alpha(w* h) {}
- ImageData(ImageData&& tmp) : width(tmp.width), height(tmp.height) { rgb.swap(tmp.rgb); alpha.swap(tmp.alpha); }
-
- const int width;
- const int height;
- std::vector<unsigned char> rgb; //rgb-byte order for use with wxImage
- std::vector<unsigned char> alpha;
-
-private:
- ImageData(const ImageData&);
- ImageData& operator=(const ImageData&);
-};
-
-ImageData getThumbnail(const char* filename, int requestedSize); //throw SysError
-ImageData getFileIcon (const char* filename, int requestedSize); //throw SysError
-ImageData getDefaultFileIcon (int requestedSize); //throw SysError
-ImageData getDefaultFolderIcon(int requestedSize); //throw SysError
-}
-
-#endif //OSX_FILE_ICON_8427508422345342
bgstack15