-
Notifications
You must be signed in to change notification settings - Fork 0
/
IconUtils.h
28 lines (21 loc) · 1 KB
/
IconUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//----------------------------------------------------------------------------------------
// IconUtils.h - Common icon utilities
//
// Copyright © Chris, 2003 - 2010. All rights reserved.
//----------------------------------------------------------------------------------------
#pragma once
#import <Foundation/Foundation.h>
//#import <HIServices/HIServices.h>
#import "CommonUtils.h"
//----------------------------------------------------------------------------------------
void InitIconCache (void);
IconRef GenericFolderIcon (void);
IconRef GenericFileIcon (void);
IconRef RepositoryIcon (void);
IconRef WorkingCopyIcon (void);
IconRef GetFileIcon (ConstCStr path, Boolean* isDirectory);
IconRef GetFileOrTypeIcon (ConstCStr path, NSString* name, Boolean* isDirectory);
IconRef GetFileTypeIcon (NSString* fileType);
NSImage* ImageFromIcon (IconRef iconRef, GCoord size);
//----------------------------------------------------------------------------------------
// End of IconUtils.h