FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIColor.h
Go to the documentation of this file.
1 //
2 // UIColor.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 10. 5..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
15 #import <UIKit/UIKit.h>
16 @class UIAColorComponents;
17 
23 
27 @property(nonatomic,readonly) UIAColorComponents *components;
28 
32 @property(nonatomic,readonly) CGColorSpaceRef CGColorSpace;
36 @property(nonatomic,readonly) CGColorSpaceModel CGColorSpaceModel;
37 
38 @end
39 
45 
57 - (UIColor *)initWith8bitRed:(UInt8)red green:(UInt8)green blue:(UInt8)blue alpha:(UInt8)alpha;
62 + (UIColor *)colorWith8bitRed:(UInt8)red green:(UInt8)green blue:(UInt8)blue alpha:(UInt8)alpha;
63 
71 - (UIColor *)initWith8bitWhite:(UInt8)white alpha:(UInt8)alpha;
72 
77 + (UIColor *)colorWith8bitWhite:(UInt8)white alpha:(UInt8)alpha;
78 
84 - (UIColor *)initWith32bitColor:(UInt32)value;
89 + (UIColor *)colorWith32bitColor:(UInt32)value;
90 
91 @end
92 
97 
102 - (UIColor *)initWithHTMLExpression:(NSString *)code;
103 
108 + (UIColor *)colorWithHTMLExpression:(NSString *)code;
109 
110 @end
111 
116 
120 - (UIColor *)colorWithAlpha:(CGFloat)alpha;
121 
125 - (UIColor *)mixedColorWithColor:(UIColor *)color ratio:(CGFloat)ratio;
126 
127 @end
128 
129 
133 @interface UIAColorComponents: NSObject
134 
136 @property(nonatomic,readonly) CGFloat red;
138 @property(nonatomic,readonly) CGFloat green;
140 @property(nonatomic,readonly) CGFloat blue;
142 @property(nonatomic,readonly) CGFloat alpha;
143 
149 - (instancetype)initWithColor:(UIColor *)color;
154 + (instancetype)componentsWithColor:(UIColor *)color;
155 
156 @end
UIColor creations using UIAColorComponents.
Definition: UIColor.h:115
UIColor component interface.
Definition: UIColor.h:133
UIColor shortcuts.
Definition: UIColor.h:22
UIColor convinient creation methods.
Definition: UIColor.h:44
UIColor HTML color creations.
Definition: UIColor.h:96
CGColorSpaceRef CGColorSpace
CGColorSpace.
Definition: UIColor.h:32
UIAColorComponents * components
Color component property. nil if unavailable.
Definition: UIColor.h:27
CGColorSpaceModel CGColorSpaceModel
CGColorSpaceModel.
Definition: UIColor.h:36