forked from InfinitApps/InfColorPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfColorPickerController.h
More file actions
67 lines (47 loc) · 2.06 KB
/
Copy pathInfColorPickerController.h
File metadata and controls
67 lines (47 loc) · 2.06 KB
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
//==============================================================================
//
// InfColorPickerController.h
// InfColorPicker
//
// Created by Troy Gaul on 7 Aug 2010.
//
// Copyright (c) 2011 InfinitApps LLC - http://infinitapps.com
// Some rights reserved: http://opensource.org/licenses/MIT
//
//==============================================================================
#import <UIKit/UIKit.h>
@class InfColorBarView;
@class InfColorSquareView;
@class InfColorBarPicker;
@class InfColorSquarePicker;
@protocol InfColorPickerControllerDelegate;
//------------------------------------------------------------------------------
@interface InfColorPickerController : UIViewController {
float hue;
float saturation;
float brightness;
}
// Public API:
+ (InfColorPickerController*) colorPickerViewController;
+ (CGSize) idealSizeForViewInPopover;
- (void) presentModallyOverViewController: (UIViewController*) controller;
@property( retain, nonatomic ) UIColor* sourceColor;
@property( retain, nonatomic ) UIColor* resultColor;
@property( assign, nonatomic ) id< InfColorPickerControllerDelegate > delegate;
// IB outlets:
@property( retain, nonatomic ) IBOutlet InfColorBarView* barView;
@property( retain, nonatomic ) IBOutlet InfColorSquareView* squareView;
@property( retain, nonatomic ) IBOutlet InfColorBarPicker* barPicker;
@property( retain, nonatomic ) IBOutlet InfColorSquarePicker* squarePicker;
@property( retain, nonatomic ) IBOutlet UIView* sourceColorView;
@property( retain, nonatomic ) IBOutlet UIView* resultColorView;
@property( retain, nonatomic ) IBOutlet UINavigationController* navController;
@end
//------------------------------------------------------------------------------
@protocol InfColorPickerControllerDelegate
@optional
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) controller;
// This is only called when the color picker is presented modally.
- (void) colorPickerControllerDidChangeColor: (InfColorPickerController*) controller;
@end
//------------------------------------------------------------------------------