Flycut/UI/BezelWindow.h

62 lines
1.7 KiB
C
Raw Normal View History

2011-03-20 15:16:13 +08:00
//
// BezelWindow.h
// Jumpcut
//
// Created by Steve Cook on 4/3/06.
// Copyright 2006 Steve Cook. All rights reserved.
//
// This code is open-source software subject to the MIT License; see the homepage
// at <http://jumpcut.sourceforge.net/> for details.
#import <Cocoa/Cocoa.h>
#import "RoundRecBezierPath.h"
#import "RoundRecTextField.h"
@interface BezelWindow : NSWindow {
2016-01-17 12:16:55 +08:00
// "n of n" text in bezel
2011-03-20 15:16:13 +08:00
NSString *charString; // Slightly misleading, as this can be longer than one character
NSString *title;
2016-01-17 12:16:55 +08:00
// Clipping text shown in bezel
2011-03-20 15:16:13 +08:00
NSString *bezelText;
2016-01-17 12:16:55 +08:00
NSString *sourceText;
NSString *dateText;
NSImage *sourceIconImage;
2011-03-20 15:16:13 +08:00
NSImage *icon;
2016-01-17 12:16:55 +08:00
Boolean showSourceField;
NSImageView *sourceIcon;
RoundRecTextField *sourceFieldBackground;
RoundRecTextField *sourceFieldApp;
RoundRecTextField *sourceFieldDate;
2011-03-20 15:16:13 +08:00
RoundRecTextField *textField;
RoundRecTextField *charField;
NSImageView *iconView;
id delegate;
Boolean color;
2011-03-20 15:16:13 +08:00
}
2016-01-17 12:16:55 +08:00
- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)aStyle
backing:(NSBackingStoreType)bufferingType
defer:(BOOL)flag
showSource:(BOOL)showSource;
2011-03-20 15:16:13 +08:00
- (NSColor *)roundedBackgroundWithRect:(NSRect)bgRect withRadius:(float)radius withAlpha:(float)alpha;
- (NSColor *)sizedBezelBackgroundWithRadius:(float)radius withAlpha:(float)alpha;
- (NSString *)title;
- (void)setTitle:(NSString *)newTitle;
- (NSString *)text;
- (void)setText:(NSString *)newText;
- (void)setColor:(BOOL)value;
2011-03-20 15:16:13 +08:00
- (void)setCharString:(NSString *)newChar;
- (void)setAlpha:(float)newValue;
2016-01-17 12:16:55 +08:00
- (void)setSource:(NSString *)newSource;
- (void)setDate:(NSString *)newDate;
- (void)setSourceIcon:(NSImage *)newSourceIcon;
2011-03-20 15:16:13 +08:00
- (id)delegate;
- (void)setDelegate:(id)newDelegate;
@end