forked from eczarny/spectacle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpectacleHistoryItem.m
54 lines (38 loc) · 1.24 KB
/
SpectacleHistoryItem.m
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
#import "SpectacleHistoryItem.h"
@implementation SpectacleHistoryItem
- (id)initWithAccessibilityElement: (ZKAccessibilityElement *)anAccessibilityElement windowRect: (CGRect)aWindowRect {
if (self = [super init]) {
accessibilityElement = anAccessibilityElement;
windowRect = aWindowRect;
nextHistoryItem = nil;
previousHistoryItem = nil;
}
return self;
}
#pragma mark -
+ (SpectacleHistoryItem *)historyItemFromAccessibilityElement: (ZKAccessibilityElement *)anAccessibilityElement windowRect: (CGRect)aWindowRect {
return [[SpectacleHistoryItem alloc] initWithAccessibilityElement: anAccessibilityElement windowRect: aWindowRect];
}
#pragma mark -
- (ZKAccessibilityElement *)accessibilityElement {
return accessibilityElement;
}
#pragma mark -
- (CGRect)windowRect {
return windowRect;
}
#pragma mark -
- (SpectacleHistoryItem *)nextHistoryItem {
return nextHistoryItem;
}
- (void)setNextHistoryItem: (SpectacleHistoryItem *)historyItem {
nextHistoryItem = historyItem;
}
#pragma mark -
- (SpectacleHistoryItem *)previousHistoryItem {
return previousHistoryItem;
}
- (void)setPreviousHistoryItem: (SpectacleHistoryItem *)historyItem {
previousHistoryItem = historyItem;
}
@end