// // BezelWindow.h // Flycut // // Flycut by Gennadiy Potapov and contributors. Based on Jumpcut by Steve Cook. // Copyright 2011 General Arcade. All rights reserved. // // This code is open-source software subject to the MIT License; see the homepage // at for details. // #import #import "RoundRecBezierPath.h" #import "RoundRecTextField.h" @interface BezelWindow : NSPanel { // "n of n" text in bezel NSString *charString; // Slightly misleading, as this can be longer than one character NSString *title; // Clipping text shown in bezel NSString *bezelText; NSString *sourceText; NSString *dateText; NSImage *sourceIconImage; NSImage *icon; Boolean showSourceField; NSImageView *sourceIcon; RoundRecTextField *sourceFieldBackground; RoundRecTextField *sourceFieldApp; RoundRecTextField *sourceFieldDate; RoundRecTextField *textField; RoundRecTextField *charField; NSImageView *iconView; id delegate; Boolean color; } - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag showSource:(BOOL)showSource; - (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; - (void)setCharString:(NSString *)newChar; - (void)setAlpha:(float)newValue; - (void)setSource:(NSString *)newSource; - (void)setDate:(NSString *)newDate; - (void)setSourceIcon:(NSImage *)newSourceIcon; - (id)delegate; - (void)setDelegate:(id)newDelegate; @end