mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 14:07:05 +03:00
7b2694e9f6
svn path=/trunk/netsurf/; revision=11490
39 lines
905 B
Objective-C
39 lines
905 B
Objective-C
//
|
|
// 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
|
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
|
<NSMenuDelegate>
|
|
#endif
|
|
{
|
|
PSMTabBarControl *_control;
|
|
NSMutableArray *_cellTrackingRects;
|
|
NSMutableArray *_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
|