Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 104 lines (76 sloc) 3.421 kb
c2e60dd @jnozzi Initial Project Commit
authored
1 //
2 // JLNFadingScrollView.h
3 // JLNFadingScrollView
4 //
5 // Created by Joshua Nozzi on 12/23/11.
6 // Copyright (c) 2011 Joshua Nozzi. All rights reserved.
7 //
670a2ae @jnozzi Header Cleanup
authored
8 // This software is supplied to you by Joshua Nozzi in consideration
9 // of your agreement to the following terms, and your use, installation,
10 // modification or redistribution of this software constitutes
11 // acceptance of these terms. If you do not agree with these terms,
12 // please do not use, install, modify or redistribute this software.
13 //
14 // In consideration of your agreement to abide by the following terms,
15 // and subject to these terms, Joshua Nozzi grants you a personal,
16 // non-exclusive license, to use, reproduce, modify and redistribute
17 // the software, with or without modifications, in source and/or binary
18 // forms; provided that if you redistribute the software in its entirety
19 // and without modifications, you must retain this notice and the
20 // following text and disclaimers in all such redistributions of the
21 // software, and that in all cases attribution of Joshua Nozzi as the
22 // original author of the source code shall be included in all such
23 // resulting software products or distributions. Neither the name,
24 // trademarks, service marks or logos of Joshua Nozzi may be used to
25 // endorse or promote products derived from the software without specific
26 // prior written permission from Joshua Nozzi. Except as expressly stated
27 // in this notice, no other rights or licenses, express or implied, are
28 // granted by Joshua Nozzi herein, including but not limited to any patent
29 // rights that may be infringed by your derivative works or by other works
30 // in which the software may be incorporated.
31 //
32 // THIS SOFTWARE IS PROVIDED BY JOSHUA NOZZI ON AN "AS IS" BASIS. JOSHUA
33 // NOZZI MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT
34 // LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
35 // AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE SOFTWARE OR ITS USE
36 // AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
37 //
38 // IN NO EVENT SHALL JOSHUA NOZZI BE LIABLE FOR ANY SPECIAL, INDIRECT,
39 // INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
41 // PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE
42 // USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE SOFTWARE,
43 // HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
44 // NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF JOSHUA NOZZI HAS
45 // BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46 //
c2e60dd @jnozzi Initial Project Commit
authored
47
48
49 #import <AppKit/AppKit.h>
50
51
52 @class JLNFadeView;
53
54
55 @interface JLNFadingScrollView : NSScrollView
56 {
57
58 JLNFadeView * _topFadeView;
59 JLNFadeView * _bottomFadeView;
60 CGFloat _fadeHeight;
61 NSColor * _fadeColor;
62
63 }
64
65
670a2ae @jnozzi Header Cleanup
authored
66 #pragma mark Properties
67
c2e60dd @jnozzi Initial Project Commit
authored
68 - (CGFloat)fadeHeight;
69 - (void)setFadeHeight:(CGFloat)newHeight;
70
71 - (NSColor *)fadeColor;
72 - (void)setFadeColor:(NSColor *)newColor;
73
670a2ae @jnozzi Header Cleanup
authored
74
75 #pragma mark Tiling
76
77 // You should not need to call this directly
c2e60dd @jnozzi Initial Project Commit
authored
78 - (void)tileFadeViews;
79
80
81 @end
82
83
84
85 #pragma mark -
86
87 @interface JLNFadeView : NSView
88 {
89 BOOL _topDown;
90 NSGradient * _fadient;
91 NSColor * _fadeColor;
92 }
93
670a2ae @jnozzi Header Cleanup
authored
94
95 #pragma mark Properties
96
c2e60dd @jnozzi Initial Project Commit
authored
97 - (NSColor *)fadeColor;
98 - (void)setFadeColor:(NSColor *)newColor;
99
100 @property (assign) BOOL topDown;
101
102
103 @end
Something went wrong with that request. Please try again.