diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-05-05 22:28:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-05-15 13:44:34 +0100 |
commit | d21447d096a320a08b3efb2b8768fad0dcdcfd64 (patch) | |
tree | 1a83814b7c9e94b2f13c473261f23dd3a17dee64 /frontends/cocoa/PSMTabBarControl/PSMTabBarController.h | |
parent | 2cbb337756d9af5bda4d594964d446439f602551 (diff) | |
download | netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.gz netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.bz2 |
move frontends into sub directory
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/PSMTabBarController.h')
-rw-r--r-- | frontends/cocoa/PSMTabBarControl/PSMTabBarController.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/PSMTabBarController.h b/frontends/cocoa/PSMTabBarControl/PSMTabBarController.h new file mode 100644 index 000000000..a73a04f1f --- /dev/null +++ b/frontends/cocoa/PSMTabBarControl/PSMTabBarController.h @@ -0,0 +1,38 @@ +// +// 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:(NSUInteger)index; +- (NSRect)closeButtonTrackingRectAtIndex:(NSUInteger)index; +- (NSRect)cellFrameAtIndex:(NSUInteger)index; + +- (void)setSelectedCell:(PSMTabBarCell *)cell; + +- (void)layoutCells; + +@end |