6 #import <Foundation/NSObjCRuntime.h>
7 #import <GraphicsServices/GraphicsServices.h>
9 /*XXX:*/typedef struct {
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;
56 UIBarButtonItemStylePlain
,
57 UIBarButtonItemStyleBordered
,
58 UIBarButtonItemStyleDone
,
59 } UIBarButtonItemStyle
;
63 UIBarStyleBlackOpaque
,
64 UIBarStyleBlackTranslucent
,
69 UIButtonTypeRoundedRect
,
70 UIButtonTypeDetailDisclosure
,
71 UIButtonTypeInfoLight
,
73 UIButtonTypeContactAdd
,
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,
88 UIControlEventEditingDidBegin
= 1 << 16,
89 UIControlEventEditingChanged
= 1 << 17,
90 UIControlEventEditingDidEnd
= 1 << 18,
91 UIControlEventEditingDidEndOnExit
= 1 << 19,
93 UIControlEventAllTouchEvents
= 0x00000fff,
94 UIControlEventAllEditingEvents
= 0x000f0000,
95 UIControlEventApplicationReserved
= 0x0f000000,
96 UIControlEventSystemReserved
= 0xf0000000,
97 UIControlEventAllEvents
= 0xffffffff,
98 }; typedef NSUInteger UIControlEvents
;
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
;
110 UIDeviceOrientationUnknown
,
111 UIDeviceOrientationPortrait
,
112 UIDeviceOrientationPortraitUpsideDown
,
113 UIDeviceOrientationLandscapeLeft
,
114 UIDeviceOrientationLandscapeRight
,
115 UIDeviceOrientationFaceUp
,
116 UIDeviceOrientationFaceDown
,
117 } UIDeviceOrientation
;
120 UIInterfaceOrientationPortrait
= UIDeviceOrientationPortrait
,
121 UIInterfaceOrientationPortraitUpsideDown
= UIDeviceOrientationPortraitUpsideDown
,
122 UIInterfaceOrientationLandscapeLeft
= UIDeviceOrientationLandscapeRight
,
123 UIInterfaceOrientationLandscapeRight
= UIDeviceOrientationLandscapeLeft
,
124 } UIInterfaceOrientation
;
127 UINavigationButtonStyleNormal
,
128 UINavigationButtonStyleBack
,
129 UINavigationButtonStyleHighlighted
,
130 UINavigationButtonStyleDestructive
131 } UINavigationButtonStyle
;
134 UIProgressIndicatorStyleLargeWhite
,
135 UIProgressIndicatorStyleMediumWhite
,
136 UIProgressIndicatorStyleMediumBrown
,
137 UIProgressIndicatorStyleSmallWhite
,
138 UIProgressIndicatorStyleSmallBlack
,
139 UIProgressIndicatorStyleTinyWhite
,
140 } UIProgressIndicatorStyle
;
143 UITableViewCellEditingStyleNone
,
144 UITableViewCellEditingStyleDelete
,
145 UITableViewCellEditingStyleInsert
146 } UITableViewCellEditingStyle
;
149 UITableViewCellSeparatorStyleNone
,
150 UITableViewCellSeparatorStyleSingleLine
151 } UITableViewCellSeparatorStyle
;
154 UITableViewRowAnimationFade
,
155 UITableViewRowAnimationRight
,
156 UITableViewRowAnimationLeft
,
157 UITableViewRowAnimationTop
,
158 UITableViewRowAnimationBottom
,
159 } UITableViewRowAnimation
;
162 UITextAlignmentLeft
= 0,
163 UITextAlignmentCenter
= 1,
164 UITextAlignmentRight
= 2,
168 UITransitionNone
= 0,
169 UITransitionPushFromRight
= 1,
170 UITransitionPushFromLeft
= 2,
171 UITransitionPushFromBottom
= 3,
172 UITransitionFade
= 6,
173 UITransitionPushFromTop
= 7,
177 UIViewAnimationCurveEaseInOut
,
178 UIViewAnimationCurveEaseIn
,
179 UIViewAnimationCurveEaseOut
,
180 UIViewAnimationCurveLinear
,
181 } UIViewAnimationCurve
;
184 UIViewAutoresizingNone
= 0,
185 UIViewAutoresizingFlexibleLeftMargin
= 1 << 0,
186 UIViewAutoresizingFlexibleWidth
= 1 << 1,
187 UIViewAutoresizingFlexibleRightMargin
= 1 << 2,
188 UIViewAutoresizingFlexibleTopMargin
= 1 << 3,
189 UIViewAutoresizingFlexibleHeight
= 1 << 4,
190 UIViewAutoresizingFlexibleBottomMargin
= 1 << 5,
191 }; typedef NSUInteger UIViewAutoresizing
;
193 #import <UIKit/UIActionSheet-Private.h>
194 #import <UIKit/UIAlertView.h>
195 #import <UIKit/UIAnimator.h>
196 #import <UIKit/UIApplication.h>
197 #import <UIKit/UIBarButtonItem.h>
198 #import <UIKit/UIBezierPath.h>
199 #import <UIKit/UIBezierPath-UIInternal.h>
200 #import <UIKit/UIButton.h>
201 #import <UIKit/UIButton-UIButtonPrivate.h>
202 #import <UIKit/UIColor.h>
203 #import <UIKit/UIColor-UIColorSystemColors.h>
204 #import <UIKit/UIControl-UIControlPrivate.h>
205 #import <UIKit/UIDevice.h>
206 #import <UIKit/UIFieldEditor.h>
207 #import <UIKit/UIFrameAnimation.h>
208 #import <UIKit/UIFont.h>
209 #import <UIKit/UIHardware.h>
210 #import <UIKit/UIFieldEditor.h>
211 #import <UIKit/UIKeyboard.h>
212 #import <UIKit/UIKeyboardImpl.h>
213 #import <UIKit/UIImage.h>
214 #import <UIKit/UIImage-UIImageDeprecated.h>
215 #import <UIKit/UIImage-UIImageInternal.h>
216 #import <UIKit/UIImage-UIImagePrivate.h>
217 #import <UIKit/UIImageAndTextTableCell.h>
218 #import <UIKit/UIImageView.h>
219 #import <UIKit/UIKeyboard.h>
220 #import <UIKit/UIKeyboardImpl.h>
221 #import <UIKit/UIModalView.h>
222 #import <UIKit/UIModalView-Private.h>
223 #import <UIKit/UINavigationBar.h>
224 #import <UIKit/UINavigationBar-Static.h>
225 #import <UIKit/UINavigationButton.h>
226 #import <UIKit/UINavigationController.h>
227 #import <UIKit/UINavigationItem.h>
228 #import <UIKit/UIOldSliderControl.h>
229 #import <UIKit/UIPreferencesTable.h>
230 #import <UIKit/UIPreferencesTableCell.h>
231 #import <UIKit/UIPreferencesTextTableCell.h>
232 #import <UIKit/UIProgressBar.h>
233 #import <UIKit/UIProgressHUD.h>
234 #import <UIKit/UIProgressHUD-Deprecated.h>
235 #import <UIKit/UIProgressIndicator.h>
236 #import <UIKit/UIPushButton.h>
237 #import <UIKit/UIScreen.h>
238 #import <UIKit/UISearchField.h>
239 #import <UIKit/UISectionList.h>
240 #import <UIKit/UISimpleTableCell.h>
241 #import <UIKit/_UISwitchSlider.h>
242 #import <UIKit/UITableCell.h>
243 #import <UIKit/UITableColumn.h>
244 #import <UIKit/UITableView.h>
245 #import <UIKit/UITableViewCell.h>
246 #import <UIKit/UITableViewController.h>
247 #import <UIKit/UITableViewDelegate-Protocol.h>
248 #import <UIKit/UITextField.h>
249 #import <UIKit/UITextInputTraits.h>
250 #import <UIKit/UITextLabel.h>
251 #import <UIKit/UITextView.h>
252 #import <UIKit/UIThreePartButton.h>
253 #import <UIKit/UIToolbar.h>
254 #import <UIKit/UIToolbar-UIButtonBarPrivate.h>
255 #import <UIKit/UITransitionView.h>
256 #import <UIKit/UIView-Animation.h>
257 #import <UIKit/UIView-Deprecated.h>
258 #import <UIKit/UIView-Geometry.h>
259 #import <UIKit/UIView-Gestures.h>
260 #import <UIKit/UIView-Hierarchy.h>
261 #import <UIKit/UIView-Rendering.h>
262 #import <UIKit/UIViewController.h>
263 #import <UIKit/UIWebDocumentView.h>
264 #import <UIKit/UIWebDocumentView-Forms.h>
265 #import <UIKit/UIWebDocumentView-Messaging.h>
266 #import <UIKit/UIWebView.h>
267 #import <UIKit/UIWindow.h>
268 #import <UIKit/UIWindow-Static.h>
270 #import <UIKit/NSIndexPath-UITableView.h>
272 #import <UIKit/NSString-UIStringDrawing.h>
273 #import <UIKit/NSString-UIStringDrawingDeprecated.h>
275 #import <UIKit/NSURL-UIKitAdditions.h>
277 #import <CoreGraphics/CoreGraphics.h>
283 int UIApplicationMain(int argc
, char *argv
[], NSString
*principalClassName
, NSString
*delegateClassName
);
285 CGContextRef
UIGraphicsGetCurrentContext(void);
286 UIWindow
*UIWindowFindWithWindowRef(GSWindowRef window
);
288 void UIApplicationUseLegacyEvents(BOOL use
);
289 void UIKeyboardEnableAutomaticAppearance(void);
290 void UIKeyboardDisableAutomaticAppearance(void);
292 extern NSString
* const kUIButtonBarButtonAction
;
293 extern NSString
* const kUIButtonBarButtonInfo
;
294 extern NSString
* const kUIButtonBarButtonInfoOffset
;
295 extern NSString
* const kUIButtonBarButtonSelectedInfo
;
296 extern NSString
* const kUIButtonBarButtonStyle
;
297 extern NSString
* const kUIButtonBarButtonTag
;
298 extern NSString
* const kUIButtonBarButtonTarget
;
299 extern NSString
* const kUIButtonBarButtonTitle
;
300 extern NSString
* const kUIButtonBarButtonTitleVerticalHeight
;
301 extern NSString
* const kUIButtonBarButtonTitleWidth
;
302 extern NSString
* const kUIButtonBarButtonType
;
304 extern NSString
* const UIKeyboardWillShowNotification
;
305 extern NSString
* const UIKeyboardDidShowNotification
;
306 extern NSString
* const UIKeyboardWillHideNotification
;
307 extern NSString
* const UIKeyboardDidHideNotification
;
308 extern NSString
* const UIKeyboardCenterBeginUserInfoKey
;
309 extern NSString
* const UIKeyboardCenterEndUserInfoKey
;
310 extern NSString
* const UIKeyboardBoundsUserInfoKey
;
312 extern NSString
* const UIWebViewDidReceiveMessageNotification
;
313 extern NSString
* const UIWebViewDidClearMessagesNotification
;
315 extern UIApplication
* const UIApp
;
321 #endif//UIKIT_UIKIT_H_