Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
805 - 1
//
2
//  ButtonGradientView.h
3
//  Custom Alert View
4
//
5
//  Created by jeff on 5/17/10.
6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
7
//
8
 
9
#import <UIKit/UIKit.h>
10
#import <QuartzCore/QuartzCore.h>
11
#import <CoreGraphics/CoreGraphics.h>
12
 
13
@interface GradientButton : UIButton
14
{
15
    // These two arrays define the gradient that will be used
16
    // when the button is in UIControlStateNormal
17
    NSArray  *normalGradientColors;     // Colors
18
    NSArray  *normalGradientLocations;  // Relative locations
19
 
20
    // These two arrays define the gradient that will be used
21
    // when the button is in UIControlStateHighlighted 
22
    NSArray  *highlightGradientColors;     // Colors
23
    NSArray  *highlightGradientLocations;  // Relative locations
24
 
25
    // This defines the corner radius of the button
26
    CGFloat         cornerRadius;
27
 
28
 
29
@private
30
    CGGradientRef   normalGradient;
31
    CGGradientRef   highlightGradient;
32
}
33
@property (nonatomic, retain) NSArray *normalGradientColors;
34
@property (nonatomic, retain) NSArray *normalGradientLocations;
35
@property (nonatomic, retain) NSArray *highlightGradientColors;
36
@property (nonatomic, retain) NSArray *highlightGradientLocations;
37
@property (nonatomic) CGFloat cornerRadius;
38
 
39
- (void)useAlertStyle;
40
- (void)useRedDeleteStyle;
41
- (void)useWhiteStyle;
42
- (void)useBlackStyle;
43
- (void)useSimpleOrangeStyle;
44
@end