Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ColorPickerView.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f937a494cc593358496fdcd0b4adec2bf3a5f146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <UIKit/UIKit.h>

@protocol ColorPickerDelegate <NSObject>
-(void)colorPicked:(size_t)colorIndex;
@end

@interface ColorPickerView : UIView

@property (nonatomic, weak) id <ColorPickerDelegate> delegate;

- (id)initWithWidth:(CGFloat)width andSelectButton:(size_t)selectedIndex;
+ (UIColor *)buttonColor:(size_t)index;
+ (UIColor *)colorForName:(NSString *)name;
+ (NSString *)colorName:(size_t)index;
+ (size_t)getColorIndex:(NSString *)name;

@end