Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/diebuche/ChameleonPrefPane/Sources/RoundedBox.h

1//
2// RoundedBox.m
3// RoundedBox
4//
5// Created by Matt Gemmell on 01/11/2005.
6// Copyright 2006 Matt Gemmell. http://mattgemmell.com/
7//
8// Permission to use this code:
9//
10// Feel free to use this code in your software, either as-is or
11// in a modified form. Either way, please include a credit in
12// your software's "About" box or similar, mentioning at least
13// my name (Matt Gemmell). A link to my site would be nice too.
14//
15// Permission to redistribute this code:
16//
17// You can redistribute this code, as long as you keep these
18// comments. You can also redistribute modified versions of the
19// code, as long as you add comments to say that you've made
20// modifications (keeping these original comments too).
21//
22// If you do use or redistribute this code, an email would be
23// appreciated, just to let me know that people are finding my
24// code useful. You can reach me at matt.gemmell@gmail.com
25//
26
27#import <Cocoa/Cocoa.h>
28#import "CTGradient.h"
29
30@interface RoundedBox : NSBox {
31 float borderWidth;
32 NSColor *borderColor;
33 NSColor *titleColor;
34 NSColor *gradientStartColor;
35 NSColor *gradientEndColor;
36 NSColor *backgroundColor;
37 NSMutableDictionary *titleAttrs;
38 BOOL drawsFullTitleBar;
39 BOOL selected;
40 BOOL drawsGradientBackground;
41}
42
43- (void)setDefaults;
44- (NSBezierPath *)titlePathWithinRect:(NSRect)rect cornerRadius:(float)radius titleRect:(NSRect)titleRect;
45
46- (BOOL)drawsFullTitleBar;
47- (void)setDrawsFullTitleBar:(BOOL)value;
48- (BOOL)selected;
49- (void)setSelected:(BOOL)newSelected;
50- (NSColor *)borderColor;
51- (void)setBorderColor:(NSColor *)newBorderColor;
52- (NSColor *)titleColor;
53- (void)setTitleColor:(NSColor *)newTitleColor;
54- (NSColor *)gradientStartColor;
55- (void)setGradientStartColor:(NSColor *)newGradientStartColor;
56- (NSColor *)gradientEndColor;
57- (void)setGradientEndColor:(NSColor *)newGradientEndColor;
58- (NSColor *)backgroundColor;
59- (void)setBackgroundColor:(NSColor *)newBackgroundColor;
60- (BOOL)drawsGradientBackground;
61- (void)setDrawsGradientBackground:(BOOL)newDrawsGradientBackground;
62
63@end
64

Archive Download this file

Revision: 80