2011-12-21 01:40:16 +00:00
|
|
|
//
|
|
|
|
// TitleBarView.h
|
|
|
|
// 2Term
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 11/26/2011.
|
|
|
|
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
|
|
|
@interface TitleBarView : NSView
|
|
|
|
{
|
2012-08-01 23:56:56 +00:00
|
|
|
NSColor *_backgroundColor;
|
2012-08-04 22:35:03 +00:00
|
|
|
NSColor *_textColor;
|
2011-12-21 01:40:16 +00:00
|
|
|
NSTextField *_label;
|
|
|
|
NSImage *_rightImage;
|
|
|
|
NSImage *_leftImage;
|
|
|
|
NSImage *_centerImage;
|
2012-08-01 23:56:56 +00:00
|
|
|
|
|
|
|
BOOL _dark;
|
2011-12-21 01:40:16 +00:00
|
|
|
}
|
|
|
|
|
2012-08-01 23:56:56 +00:00
|
|
|
@property (nonatomic, retain) NSColor *backgroundColor;
|
2012-08-04 22:35:03 +00:00
|
|
|
@property (nonatomic, retain) NSColor *textColor;
|
2011-12-23 20:35:00 +00:00
|
|
|
@property (nonatomic, retain) IBOutlet NSTextField *label;
|
|
|
|
@property (nonatomic, retain) NSString *title;
|
2011-12-21 01:40:16 +00:00
|
|
|
|
2012-08-01 23:56:56 +00:00
|
|
|
-(void)updateTitle;
|
|
|
|
|
2011-12-21 01:40:16 +00:00
|
|
|
-(void)fadeIn;
|
|
|
|
-(void)fadeOut;
|
|
|
|
@end
|