]> git.saurik.com Git - iphone-api.git/blob - UIKit/UIKit.h
Merge branch 'master' of git@git.saurik.com:iphone-api
[iphone-api.git] / UIKit / UIKit.h
1 #ifndef UIKIT_UIKIT_H_
2 #define UIKIT_UIKIT_H_
3
4 @class NSString;
5
6 #import <Foundation/NSObjCRuntime.h>
7 #import <GraphicsServices/GraphicsServices.h>
8
9 /*XXX:*/typedef struct {
10 float top;
11 float left;
12 float bottom;
13 float right;
14 } CDAnonymousStruct2;
15
16 /*XXX:*/typedef struct {
17 unsigned int numberOfRows:7;
18 unsigned int delegateAlertSheetButtonClicked:1;
19 unsigned int delegateDidPresentAlertSheet:1;
20 unsigned int delegateDidDismissAlertSheet:1;
21 unsigned int hideButtonBar:1;
22 unsigned int alertStyle:3;
23 unsigned int dontDimBackground:1;
24 unsigned int dismissSuspended:1;
25 unsigned int dontBlockInteraction:1;
26 unsigned int sheetWasPoppedUp:1;
27 unsigned int animating:1;
28 unsigned int hideWhenDoneAnimating:1;
29 unsigned int layoutWhenDoneAnimating:1;
30 unsigned int titleMaxLineCount:2;
31 unsigned int bodyTextMaxLineCount:3;
32 unsigned int runsModal:1;
33 unsigned int runningModal:1;
34 unsigned int addedTextView:1;
35 unsigned int addedTableShadows:1;
36 unsigned int showOverSBAlerts:1;
37 unsigned int showMinTableContent:1;
38 unsigned int bodyTextTruncated:1;
39 unsigned int orientation:3;
40 unsigned int delegateBodyTextAlignment:1;
41 unsigned int delegateClickedButtonAtIndex:1;
42 unsigned int delegateClickedButtonAtIndex2:1;
43 unsigned int delegateCancel:1;
44 unsigned int delegateCancel2:1;
45 unsigned int delegateWillPresent:1;
46 unsigned int delegateWillPresent2:1;
47 unsigned int delegateDidPresent:1;
48 unsigned int delegateDidPresent2:1;
49 unsigned int delegateWillDismiss:1;
50 unsigned int delegateWillDismiss2:1;
51 unsigned int delegateDidDismiss:1;
52 unsigned int delegateDidDismiss2:1;
53 } CDAnonymousStruct7;
54
55 typedef enum {
56 UIBarButtonItemStylePlain,
57 UIBarButtonItemStyleBordered,
58 UIBarButtonItemStyleDone,
59 } UIBarButtonItemStyle;
60
61 typedef enum {
62 UIBarStyleDefault,
63 UIBarStyleBlackOpaque,
64 UIBarStyleBlackTranslucent,
65 } UIBarStyle;
66
67 typedef enum {
68 UIButtonTypeCustom,
69 UIButtonTypeRoundedRect,
70 UIButtonTypeDetailDisclosure,
71 UIButtonTypeInfoLight,
72 UIButtonTypeInfoDark,
73 UIButtonTypeContactAdd,
74 } UIButtonType;
75
76 enum {
77 UIControlEventTouchDown = 1 << 0,
78 UIControlEventTouchDownRepeat = 1 << 1,
79 UIControlEventTouchDragInside = 1 << 2,
80 UIControlEventTouchDragOutside = 1 << 3,
81 UIControlEventTouchDragEnter = 1 << 4,
82 UIControlEventTouchDragExit = 1 << 5,
83 UIControlEventTouchUpInside = 1 << 6,
84 UIControlEventTouchUpOutside = 1 << 7,
85 UIControlEventTouchCancel = 1 << 8,
86 UIControlEventValueChanged = 1 << 12,
87
88 UIControlEventEditingDidBegin = 1 << 16,
89 UIControlEventEditingChanged = 1 << 17,
90 UIControlEventEditingDidEnd = 1 << 18,
91 UIControlEventEditingDidEndOnExit = 1 << 19,
92
93 UIControlEventAllTouchEvents = 0x00000fff,
94 UIControlEventAllEditingEvents = 0x000f0000,
95 UIControlEventApplicationReserved = 0x0f000000,
96 UIControlEventSystemReserved = 0xf0000000,
97 UIControlEventAllEvents = 0xffffffff,
98 }; typedef NSUInteger UIControlEvents;
99
100 enum {
101 UIControlStateNormal = 0,
102 UIControlStateHighlighted = 1 << 0,
103 UIControlStateDisabled = 1 << 1,
104 UIControlStateSelected = 1 << 2,
105 UIControlStateApplication = 0x00ff0000,
106 UIControlStateReserved = 0xff000000,
107 }; typedef NSUInteger UIControlState;
108
109 typedef enum {
110 UIDeviceOrientationUnknown,
111 UIDeviceOrientationPortrait,
112 UIDeviceOrientationPortraitUpsideDown,
113 UIDeviceOrientationLandscapeLeft,
114 UIDeviceOrientationLandscapeRight,
115 UIDeviceOrientationFaceUp,
116 UIDeviceOrientationFaceDown,
117 } UIDeviceOrientation;
118
119 typedef enum {
120 UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
121 UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
122 UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,
123 UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft,
124 } UIInterfaceOrientation;
125
126 typedef enum {
127 UINavigationButtonStyleNormal,
128 UINavigationButtonStyleBack,
129 UINavigationButtonStyleHighlighted,
130 UINavigationButtonStyleDestructive
131 } UINavigationButtonStyle;
132
133 typedef enum {
134 UITableViewCellEditingStyleNone,
135 UITableViewCellEditingStyleDelete,
136 UITableViewCellEditingStyleInsert
137 } UITableViewCellEditingStyle;
138
139 typedef enum {
140 UITableViewCellSeparatorStyleNone,
141 UITableViewCellSeparatorStyleSingleLine
142 } UITableViewCellSeparatorStyle;
143
144 typedef enum {
145 UITableViewRowAnimationFade,
146 UITableViewRowAnimationRight,
147 UITableViewRowAnimationLeft,
148 UITableViewRowAnimationTop,
149 UITableViewRowAnimationBottom,
150 } UITableViewRowAnimation;
151
152 typedef enum {
153 UITextAlignmentLeft = 0,
154 UITextAlignmentCenter = 1,
155 UITextAlignmentRight = 2,
156 } UITextAlignment;
157
158 typedef enum {
159 UITransitionNone = 0,
160 UITransitionPushFromRight = 1,
161 UITransitionPushFromLeft = 2,
162 UITransitionPushFromBottom = 3,
163 UITransitionFade = 6,
164 UITransitionPushFromTop = 7,
165 } UITransition;
166
167 typedef enum {
168 UIViewAnimationCurveEaseInOut,
169 UIViewAnimationCurveEaseIn,
170 UIViewAnimationCurveEaseOut,
171 UIViewAnimationCurveLinear,
172 } UIViewAnimationCurve;
173
174 enum {
175 UIViewAutoresizingNone = 0,
176 UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
177 UIViewAutoresizingFlexibleWidth = 1 << 1,
178 UIViewAutoresizingFlexibleRightMargin = 1 << 2,
179 UIViewAutoresizingFlexibleTopMargin = 1 << 3,
180 UIViewAutoresizingFlexibleHeight = 1 << 4,
181 UIViewAutoresizingFlexibleBottomMargin = 1 << 5,
182 }; typedef NSUInteger UIViewAutoresizing;
183
184 #import <UIKit/UIAlertView.h>
185 #import <UIKit/UIAnimator.h>
186 #import <UIKit/UIApplication.h>
187 #import <UIKit/UIBarButtonItem.h>
188 #import <UIKit/UIBezierPath.h>
189 #import <UIKit/UIBezierPath-UIInternal.h>
190 #import <UIKit/UIButton.h>
191 #import <UIKit/UIColor.h>
192 #import <UIKit/UIColor-UIColorSystemColors.h>
193 #import <UIKit/UIDevice.h>
194 #import <UIKit/UIFieldEditor.h>
195 #import <UIKit/UIFrameAnimation.h>
196 #import <UIKit/UIFont.h>
197 #import <UIKit/UIHardware.h>
198 #import <UIKit/UIFieldEditor.h>
199 #import <UIKit/UIKeyboard.h>
200 #import <UIKit/UIKeyboardImpl.h>
201 #import <UIKit/UIImage.h>
202 #import <UIKit/UIImage-UIImageInternal.h>
203 #import <UIKit/UIImage-UIImagePrivate.h>
204 #import <UIKit/UIImageAndTextTableCell.h>
205 #import <UIKit/UIImageView.h>
206 #import <UIKit/UIKeyboard.h>
207 #import <UIKit/UIKeyboardImpl.h>
208 #import <UIKit/UINavigationBar.h>
209 #import <UIKit/UINavigationButton.h>
210 #import <UIKit/UINavigationController.h>
211 #import <UIKit/UINavigationItem.h>
212 #import <UIKit/UIPreferencesTable.h>
213 #import <UIKit/UIPreferencesTableCell.h>
214 #import <UIKit/UIProgressBar.h>
215 #import <UIKit/UIProgressHUD.h>
216 #import <UIKit/UIProgressIndicator.h>
217 #import <UIKit/UIPushButton.h>
218 #import <UIKit/UIScreen.h>
219 #import <UIKit/UISearchField.h>
220 #import <UIKit/UISectionList.h>
221 #import <UIKit/UISimpleTableCell.h>
222 #import <UIKit/_UISwitchSlider.h>
223 #import <UIKit/UITableCell.h>
224 #import <UIKit/UITableColumn.h>
225 #import <UIKit/UITableView.h>
226 #import <UIKit/UITableViewCell.h>
227 #import <UIKit/UITableViewController.h>
228 #import <UIKit/UITableViewDelegate-Protocol.h>
229 #import <UIKit/UITextField.h>
230 #import <UIKit/UITextInputTraits.h>
231 #import <UIKit/UITextLabel.h>
232 #import <UIKit/UITextView.h>
233 #import <UIKit/UIThreePartButton.h>
234 #import <UIKit/UIToolbar.h>
235 #import <UIKit/UITransitionView.h>
236 #import <UIKit/UIView-Animation.h>
237 #import <UIKit/UIView-Geometry.h>
238 #import <UIKit/UIView-Gestures.h>
239 #import <UIKit/UIView-Hierarchy.h>
240 #import <UIKit/UIView-Rendering.h>
241 #import <UIKit/UIViewController.h>
242 #import <UIKit/UIWebDocumentView.h>
243 #import <UIKit/UIWebDocumentView-Forms.h>
244 #import <UIKit/UIWebView.h>
245 #import <UIKit/UIWindow.h>
246
247 #import <UIKit/NSIndexPath-UITableView.h>
248 #import <UIKit/NSString-UIStringDrawing.h>
249
250 #import <CoreGraphics/CoreGraphics.h>
251
252 #ifdef __cplusplus
253 extern "C" {
254 #endif
255
256 int UIApplicationMain(int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName);
257
258 CGContextRef UIGraphicsGetCurrentContext(void);
259 UIWindow *UIWindowFindWithWindowRef(GSWindowRef window);
260
261 void UIApplicationUseLegacyEvents(BOOL use);
262 void UIKeyboardEnableAutomaticAppearance(void);
263 void UIKeyboardDisableAutomaticAppearance(void);
264
265
266 #ifdef __cplusplus
267 }
268 #endif
269
270 extern NSString * const UIKeyboardWillShowNotification;
271 extern NSString * const UIKeyboardDidShowNotification;
272 extern NSString * const UIKeyboardWillHideNotification;
273 extern NSString * const UIKeyboardDidHideNotification;
274 extern NSString * const UIKeyboardCenterBeginUserInfoKey;
275 extern NSString * const UIKeyboardCenterEndUserInfoKey;
276 extern NSString * const UIKeyboardBoundsUserInfoKey;
277
278 #endif//UIKIT_UIKIT_H_