blob: c675b981e342d5a5251082c1bad05a3d4089a2aa (
plain)
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
|
//
// PSMTabBarController.h
// PSMTabBarControl
//
// Created by Kent Sutherland on 11/24/06.
// Copyright 2006 Kent Sutherland. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class PSMTabBarControl, PSMTabBarCell;
@interface PSMTabBarController : NSObject {
PSMTabBarControl *_control;
NSMutableArray *_cellTrackingRects, *_closeButtonTrackingRects;
NSMutableArray *_cellFrames;
NSRect _addButtonRect;
NSMenu *_overflowMenu;
}
- (id)initWithTabBarControl:(PSMTabBarControl *)control;
- (NSRect)addButtonRect;
- (NSMenu *)overflowMenu;
- (NSRect)cellTrackingRectAtIndex:(NSInteger)index;
- (NSRect)closeButtonTrackingRectAtIndex:(NSInteger)index;
- (NSRect)cellFrameAtIndex:(NSInteger)index;
- (void)setSelectedCell:(PSMTabBarCell *)cell;
- (void)layoutCells;
@end
|