forked from KOed/welly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
WLPortalItem.h
58 lines (41 loc) · 1.09 KB
/
WLPortalItem.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// WLPortalItem.h
// Welly
//
// Created by K.O.ed on 10-4-17.
// Copyright 2010 Welly Group. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@protocol WLPortalSource
- (NSImage *)image;
- (void)didSelect:(id)sender;
@end
@protocol WLDraggingSource
- (BOOL)acceptsDragging;
- (NSImage *)draggingImage;
- (NSPasteboard *)draggingPasteboard;
- (void)draggedToRemove:(id)sender;
@end
@protocol WLPasteboardReceiver
- (BOOL)acceptsPBoard:(NSPasteboard *)pboard;
- (BOOL)didReceivePBoard:(NSPasteboard *)pboard;
@end
@interface WLPortalItem : NSObject <WLPortalSource> {
NSString *_title;
NSImage *_image;
}
@property (readonly) NSString *imageTitle;
@property (readonly) NSImage *image;
- (id)initWithTitle:(NSString *)title;
- (id)initWithImage:(NSImage *)theImage;
- (id)initWithImage:(NSImage *)theImage title:(NSString *)title;
#pragma mark -
#pragma mark IKImageBrowserItem protocol
- (NSString *)imageUID;
- (NSString *)imageRepresentationType;
- (id)imageRepresentation;
- (NSString *)imageTitle;
#pragma mark -
#pragma mark WLPortalSource protocol
- (void)didSelect:(id)sender;
@end