-
Notifications
You must be signed in to change notification settings - Fork 11
/
TSModeMatrix.h
33 lines (27 loc) · 877 Bytes
/
TSModeMatrix.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
//
// TSModeMatrix.h
// ThisService
//
// Created by Jesper on 2007-08-04.
// Copyright 2007-2012 waffle software. All rights reserved.
// BSD licensed - see license.txt for more information.
//
#import <Cocoa/Cocoa.h>
@class TSModeMatrix;
@protocol TSModeMatrixDelegate <NSMatrixDelegate>
- (BOOL)modeMatrix:(TSModeMatrix *)matrix shouldSwitchFromTag:(NSInteger)previousTag toTag:(NSInteger)newTag;
- (void)modeMatrix:(TSModeMatrix *)matrix switchFromTag:(NSInteger)previousTag toTag:(NSInteger)newTag animate:(BOOL)animate;
@end
@interface TSModeMatrix : NSMatrix {
double baseHeight;
double bottomHeight;
NSInteger lastTag;
BOOL contentHasInitialized;
BOOL animationIsBlocked;
}
- (IBAction)selectMe:(id)sender;
- (void)goToTag:(int)tag;
- (void)reconfigureWithAnimation:(BOOL)anim;
- (id<TSModeMatrixDelegate>)delegate;
- (void)setContentInitialized;
@end