forked from gloubibou/HHRoundedBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHHRoundedBox.h
74 lines (67 loc) · 2.5 KB
/
HHRoundedBox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// HHRoundedBox
//
// Updated by Pierre Bernard on 04/09/2013
// Copyright 2013 Pierre Bernard (http://www.bernard-web.com/pierre), Blake Seely and Matt Gemmell (see below)
// Permissions and License are the same as below, but please include credit to me (Pierre Bernard) as well as Blake and Matt
//
//
// BSRoundedBox
//
// Updated by Blake Seely on 01/05/2006
// Copyright 2006 Blake Seely (http://www.blakeseely.com) and Matt Gemmell (see below)
// Permissions and License are the same as below, but please include credit to me (Blake Seely) as well as Matt.
//
// RoundedBox
//
// Created by Matt Gemmell on 01/11/2005.
// Copyright 2006 Matt Gemmell. http://mattgemmell.com/
//
// Permission to use this code:
//
// Feel free to use this code in your software, either as-is or
// in a modified form. Either way, please include a credit in
// your software's "About" box or similar, mentioning at least
// my name (Matt Gemmell). A link to my site would be nice too.
//
// Permission to redistribute this code:
//
// You can redistribute this code, as long as you keep these
// comments. You can also redistribute modified versions of the
// code, as long as you add comments to say that you've made
// modifications (keeping these original comments too).
//
// If you do use or redistribute this code, an email would be
// appreciated, just to let me know that people are finding my
// code useful. You can reach me at [email protected]
#import <Cocoa/Cocoa.h>
#import <QuartzCore/CoreImage.h>// needed for Core Image
@interface HHRoundedBox : NSBox
{
CGFloat _borderWidth;
CGFloat _borderRadius;
NSColor *_borderColor;
NSColor *_titleColor;
NSColor *_gradientStartColor;
NSColor *_gradientEndColor;
NSColor *_backgroundColor;
BOOL _drawsFullTitleBar;
BOOL _selected;
BOOL _drawsGradientBackground;
CGFloat _noiseOpacity;
CIColor *_gradientStartCIColor;
CIColor *_gradientEndCIColor;
NSRect _titlePathRect;
}
@property (nonatomic, assign) BOOL drawsFullTitleBar;
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, assign) CGFloat borderWidth;
@property (nonatomic, assign) CGFloat borderRadius;
@property (nonatomic, retain) NSColor *borderColor;
@property (nonatomic, retain) NSColor *titleColor;
@property (nonatomic, retain) NSColor *gradientStartColor;
@property (nonatomic, retain) NSColor *gradientEndColor;
@property (nonatomic, retain) NSColor *backgroundColor;
@property (nonatomic, assign) BOOL drawsGradientBackground;
@property (nonatomic, assign) CGFloat noiseOpacity;
@end