-
Notifications
You must be signed in to change notification settings - Fork 0
/
TLInteractiveMapLayer.h
55 lines (44 loc) · 2.44 KB
/
TLInteractiveMapLayer.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
//
// TLInteractiveMapLayer.h
// Mercatalog
//
// Created by Nathan Vander Wilt on 9/6/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TLMapLayer.h"
#import "TLTrackingZone.h"
@interface TLInteractiveMapLayer : TLMapLayer {
@private
NSArray* registeredDragTypes;
}
// mouse events
- (BOOL)hitTest:(NSPoint)windowPoint withEvent:(NSEvent*)mouseEventOrNil withInfo:(id < TLMapInfo >)mapInfo;
- (void)mouseDown:(id < TLMapInfo >)mapInfo withEvent:(NSEvent*)mouseEvent;
- (void)mouseDragged:(id < TLMapInfo >)mapInfo withEvent:(NSEvent*)mouseEvent;
- (void)mouseUp:(id < TLMapInfo >)mapInfo withEvent:(NSEvent*)mouseEvent;
- (void)flagsChanged:(id < TLMapInfo >)mapInfo withEvent:(NSEvent*)event;
- (BOOL)wantsScrollEvents;
- (void)scrollWheel:(id < TLMapInfo >)mapInfo withEvent:(NSEvent*)mouseEvent;
// tracking zone events
@property (nonatomic, copy) NSArray* activeTrackingZones;
- (void)mouseEntered:(id < TLMapInfo >)mapInfo trackingZone:(TLTrackingZone*)zone withEvent:(NSEvent*)mouseEventOrNil;
//- (void)mouseMoved:(id < TLMapInfo >)mapInfo inTrackingZone:(TLTrackingZone*)zone withEvent:(NSEvent*)mouseEventOrNil;
- (void)mouseExited:(id < TLMapInfo >)mapInfo trackingZone:(TLTrackingZone*)zone withEvent:(NSEvent*)mouseEventOrNil;
// drag and drop source
- (NSPasteboard*)dragPasteboard;
- (void)dragWithImage:(CGImageRef)image anchor:(CGPoint)imagePoint slideBack:(BOOL)shouldSlideBack;
- (NSDragOperation)dragSourceOperationMaskForLocal:(BOOL)isLocal;
- (NSArray*)namesOfPromisedFilesDroppedAtDestination:(NSURL*)dropDestination;
- (void)dragEndedWithOperation:(NSDragOperation)operation;
// drag and drop destination
@property (nonatomic, copy) NSArray* registeredDragTypes;
- (NSDragOperation)draggingEntered:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (BOOL)wantsPeriodicDraggingUpdates:(id < TLMapInfo >)mapInfo;
- (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (void)draggingExited:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (BOOL)prepareForDropOperation:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (BOOL)performDropOperation:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (void)concludeDropOperation:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
- (void)draggingEnded:(id < NSDraggingInfo >)dropInfo withInfo:(id < TLMapInfo >)mapInfo;
@end