-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
TPLayoutRemoteHostView.h
79 lines (59 loc) · 1.8 KB
/
TPLayoutRemoteHostView.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// TPLayoutRemoteHost.h
// PrefsPanel
//
// Created by JuL on Mon Dec 08 2003.
// Copyright (c) 2003-2005 abyssoft. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TPLayoutHostView.h"
#import "TPHostSnapping.h"
@class TPRemoteHost;
@interface TPLayoutRemoteScreenView : TPLayoutScreenView
{
NSTrackingArea * _trackingArea;
NSButton * _optionsButton;
NSButton * _unpairButton;
unsigned _cachedBackgroundHash;
NSImage * _cachedBackgroundImage;
}
- (void)_setupButtons;
- (void)_updateUnpairButton;
- (void)_updateOptionsButton;
@property (nonatomic, readonly) BOOL _canShowOptionsButton;
@property (nonatomic, getter=isSharedScreen, readonly) BOOL sharedScreen;
@end
@interface TPLayoutRemoteHostView : TPLayoutHostView
{
NSString * _remoteHostIdentifier;
BOOL _dragging;
BOOL _snapped;
NSPoint _deltaDrag;
NSPoint _snappedPosition;
unsigned _snappedScreenIndex;
unsigned _draggingScreenIndex;
}
@property (nonatomic) unsigned int draggingScreenIndex;
- (NSPoint)adjustedScreenPositionFromPosition:(NSPoint)position localScreenIndex:(unsigned)screenIndex side:(TPSide)side;
- (void)pairToScreenIndex:(int)screenIndex atPosition:(NSPoint)position ofSide:(TPSide)side;
- (void)unpair;
@property (nonatomic, readonly) BOOL canUnpair;
- (void)update;
#if 0
- (NSRect)rectWithSnapping:(BOOL)snapping side:(TPSide*)side;
- (NSRect)drawRectWithSnapping:(BOOL)snapping;
- (NSRect)unpairRectFromDrawRect:(NSRect)drawRect;
- (void)moveToPoint:(NSPoint)point;
- (NSPoint)snappedPosition;
- (unsigned)snappedScreenIndex;
- (void)startDraggingAtPoint:(NSPoint)dragPoint;
- (void)stopDragging;
- (BOOL)isDragging;
- (void)snapToScreenIndex:(int)screenIndex atPosition:(NSPoint)position ofSide:(TPSide)side;
- (void)unsnap;
- (BOOL)isSnapped;
- (void)pair;
- (void)unpair;
- (BOOL)canUnpair;
#endif
@end