-
Notifications
You must be signed in to change notification settings - Fork 0
/
RMBlurredView.h
32 lines (24 loc) · 1.21 KB
/
RMBlurredView.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
//
// RMBlurredView.h
//
// Created by Raffael Hannemann on 08.10.13.
// Copyright (c) 2013 Raffael Hannemann. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// Make sure to import QuartzCore and add it to your Linked Libraries of your target
#import <QuartzCore/QuartzCore.h>
@interface RMBlurredView : NSView {
// Keep a reference to the filters for later modification
CIFilter *_blurFilter, *_saturationFilter;
CALayer *_hostedLayer;
}
/** The layer will be tinted using the tint color. By default it is a 70% White Color */
@property (strong,nonatomic) NSColor *tintColor;
/** To get more vibrant colors, a filter to increase the saturation of the colors can be applied. The default value is 2.5. */
@property (assign,nonatomic) float saturationFactor;
/** The blur radius defines the strength of the Gaussian Blur filter. The default value is 20.0. */
@property (assign,nonatomic) float blurRadius;
/** Use the following property names in the User Defined Runtime Attributes in Interface Builder to set up your RMBlurredView on the fly. Note: The color can be set up, too, using 'tintColor'. */
@property (strong,nonatomic) NSNumber *saturationFactorNumber;
@property (strong,nonatomic) NSNumber *blurRadiusNumber;
@end