6 #import <Foundation/Foundation.h>
7 #import <GraphicsServices/GraphicsServices.h>
8 #import <CoreGraphics/CoreGraphics.h>
10 typedef double UIAccelerationValue
;
12 /*XXX:*/typedef struct {
13 struct CGRect _field1
;
14 struct CGRect _field2
;
15 struct CGRect _field3
;
16 struct CGRect _field4
;
17 struct CGRect _field5
;
22 unsigned int _field10
;
26 /*XXX:*/typedef struct {
33 /*XXX:*/typedef struct {
34 unsigned int numberOfRows
:7;
35 unsigned int delegateAlertSheetButtonClicked
:1;
36 unsigned int delegateDidPresentAlertSheet
:1;
37 unsigned int delegateDidDismissAlertSheet
:1;
38 unsigned int hideButtonBar
:1;
39 unsigned int alertStyle
:3;
40 unsigned int dontDimBackground
:1;
41 unsigned int dismissSuspended
:1;
42 unsigned int dontBlockInteraction
:1;
43 unsigned int sheetWasPoppedUp
:1;
44 unsigned int animating
:1;
45 unsigned int hideWhenDoneAnimating
:1;
46 unsigned int layoutWhenDoneAnimating
:1;
47 unsigned int titleMaxLineCount
:2;
48 unsigned int bodyTextMaxLineCount
:3;
49 unsigned int runsModal
:1;
50 unsigned int runningModal
:1;
51 unsigned int addedTextView
:1;
52 unsigned int addedTableShadows
:1;
53 unsigned int showOverSBAlerts
:1;
54 unsigned int showMinTableContent
:1;
55 unsigned int bodyTextTruncated
:1;
56 unsigned int orientation
:3;
57 unsigned int delegateBodyTextAlignment
:1;
58 unsigned int delegateClickedButtonAtIndex
:1;
59 unsigned int delegateClickedButtonAtIndex2
:1;
60 unsigned int delegateCancel
:1;
61 unsigned int delegateCancel2
:1;
62 unsigned int delegateWillPresent
:1;
63 unsigned int delegateWillPresent2
:1;
64 unsigned int delegateDidPresent
:1;
65 unsigned int delegateDidPresent2
:1;
66 unsigned int delegateWillDismiss
:1;
67 unsigned int delegateWillDismiss2
:1;
68 unsigned int delegateDidDismiss
:1;
69 unsigned int delegateDidDismiss2
:1;
73 UIBarButtonItemStylePlain
,
74 UIBarButtonItemStyleBordered
,
75 UIBarButtonItemStyleDone
,
76 } UIBarButtonItemStyle
;
80 UIBarStyleBlackOpaque
,
81 UIBarStyleBlackTranslucent
,
86 UIButtonTypeRoundedRect
,
87 UIButtonTypeDetailDisclosure
,
88 UIButtonTypeInfoLight
,
90 UIButtonTypeContactAdd
,
94 UIControlEventTouchDown
= 1 << 0,
95 UIControlEventTouchDownRepeat
= 1 << 1,
96 UIControlEventTouchDragInside
= 1 << 2,
97 UIControlEventTouchDragOutside
= 1 << 3,
98 UIControlEventTouchDragEnter
= 1 << 4,
99 UIControlEventTouchDragExit
= 1 << 5,
100 UIControlEventTouchUpInside
= 1 << 6,
101 UIControlEventTouchUpOutside
= 1 << 7,
102 UIControlEventTouchCancel
= 1 << 8,
103 UIControlEventValueChanged
= 1 << 12,
105 UIControlEventEditingDidBegin
= 1 << 16,
106 UIControlEventEditingChanged
= 1 << 17,
107 UIControlEventEditingDidEnd
= 1 << 18,
108 UIControlEventEditingDidEndOnExit
= 1 << 19,
110 UIControlEventAllTouchEvents
= 0x00000fff,
111 UIControlEventAllEditingEvents
= 0x000f0000,
112 UIControlEventApplicationReserved
= 0x0f000000,
113 UIControlEventSystemReserved
= 0xf0000000,
114 UIControlEventAllEvents
= 0xffffffff,
115 }; typedef NSUInteger UIControlEvents
;
118 UIControlStateNormal
= 0,
119 UIControlStateHighlighted
= 1 << 0,
120 UIControlStateDisabled
= 1 << 1,
121 UIControlStateSelected
= 1 << 2,
122 UIControlStateApplication
= 0x00ff0000,
123 UIControlStateReserved
= 0xff000000,
124 }; typedef NSUInteger UIControlState
;
127 UIDeviceOrientationUnknown
,
128 UIDeviceOrientationPortrait
,
129 UIDeviceOrientationPortraitUpsideDown
,
130 UIDeviceOrientationLandscapeLeft
,
131 UIDeviceOrientationLandscapeRight
,
132 UIDeviceOrientationFaceUp
,
133 UIDeviceOrientationFaceDown
,
134 } UIDeviceOrientation
;
137 UIGestureAttributeMinDegrees
, /*float*/
138 UIGestureAttributeMaxDegrees
, /*float*/
139 UIGestureAttributeMinScale
, /*float*/
140 UIGestureAttributeMaxScale
, /*float*/
141 UIGestureAttributeIsZoomRubberBandEnabled
, /*BOOL*/
142 UIGestureAttributeZoomsFromCurrentToMinOrMax
, /*BOOL*/
143 UIGestureAttributeVisibleSize
, /*CGSize*/
144 UIGestureAttributeUpdatesScroller
, /*BOOL*/
145 } UIGestureAttribute
;
148 UIInterfaceOrientationPortrait
= UIDeviceOrientationPortrait
,
149 UIInterfaceOrientationPortraitUpsideDown
= UIDeviceOrientationPortraitUpsideDown
,
150 UIInterfaceOrientationLandscapeLeft
= UIDeviceOrientationLandscapeRight
,
151 UIInterfaceOrientationLandscapeRight
= UIDeviceOrientationLandscapeLeft
,
152 } UIInterfaceOrientation
;
155 UIKeyboardTypeDefault
,
156 UIKeyboardTypeASCIICapable
,
157 UIKeyboardTypeNumbersAndPunctuation
,
159 UIKeyboardTypeNumberPad
,
160 UIKeyboardTypePhonePad
,
161 UIKeyboardTypeNamePhonePad
,
162 UIKeyboardTypeEmailAddress
,
166 UILineBreakModeWordWrap
,
167 UILineBreakModeCharacterWrap
,
169 UILineBreakModeHeadTruncation
,
170 UILineBreakModeTailTruncation
,
171 UILineBreakModeMiddleTruncation
,
175 UINavigationButtonStyleNormal
,
176 UINavigationButtonStyleBack
,
177 UINavigationButtonStyleHighlighted
,
178 UINavigationButtonStyleDestructive
179 } UINavigationButtonStyle
;
182 UIProgressIndicatorStyleLargeWhite
,
183 UIProgressIndicatorStyleMediumWhite
,
184 UIProgressIndicatorStyleMediumBrown
,
185 UIProgressIndicatorStyleSmallWhite
,
186 UIProgressIndicatorStyleSmallBlack
,
187 UIProgressIndicatorStyleTinyWhite
,
188 } UIProgressIndicatorStyle
;
201 UIReturnKeyEmergencyCall
,
205 UISegmentedControlStylePlain
,
206 UISegmentedControlStyleBordered
,
207 UISegmentedControlStyleBar
,
208 } UISegmentedControlStyle
;
211 UITableViewCellEditingStyleNone
,
212 UITableViewCellEditingStyleDelete
,
213 UITableViewCellEditingStyleInsert
214 } UITableViewCellEditingStyle
;
217 UITableViewCellSeparatorStyleNone
,
218 UITableViewCellSeparatorStyleSingleLine
219 } UITableViewCellSeparatorStyle
;
222 UITableViewRowAnimationFade
,
223 UITableViewRowAnimationRight
,
224 UITableViewRowAnimationLeft
,
225 UITableViewRowAnimationTop
,
226 UITableViewRowAnimationBottom
,
227 } UITableViewRowAnimation
;
230 UITableViewScrollPositionNone
,
231 UITableViewScrollPositionTop
,
232 UITableViewScrollPositionMiddle
,
233 UITableViewScrollPositionBottom
,
234 } UITableViewScrollPosition
;
237 UITableViewStylePlain
,
238 UITableViewStyleGrouped
,
243 UITextAlignmentCenter
,
244 UITextAlignmentRight
,
248 UITextAutocapitalizationTypeNone
,
249 UITextAutocapitalizationTypeWords
,
250 UITextAutocapitalizationTypeSentences
,
251 UITextAutocapitalizationTypeAllCharacters
,
252 } UITextAutocapitalizationType
;
255 UITextAutocorrectionTypeDefault
,
256 UITextAutocorrectionTypeNo
,
257 UITextAutocorrectionTypeYes
,
258 } UITextAutocorrectionType
;
261 UITransitionNone
= 0,
262 UITransitionPushFromRight
= 1,
263 UITransitionPushFromLeft
= 2,
264 UITransitionPushFromBottom
= 3,
265 UITransitionFade
= 6,
266 UITransitionPushFromTop
= 7,
270 UIViewAnimationCurveEaseInOut
,
271 UIViewAnimationCurveEaseIn
,
272 UIViewAnimationCurveEaseOut
,
273 UIViewAnimationCurveLinear
,
274 } UIViewAnimationCurve
;
277 UIViewAutoresizingNone
= 0,
278 UIViewAutoresizingFlexibleLeftMargin
= 1 << 0,
279 UIViewAutoresizingFlexibleWidth
= 1 << 1,
280 UIViewAutoresizingFlexibleRightMargin
= 1 << 2,
281 UIViewAutoresizingFlexibleTopMargin
= 1 << 3,
282 UIViewAutoresizingFlexibleHeight
= 1 << 4,
283 UIViewAutoresizingFlexibleBottomMargin
= 1 << 5,
284 }; typedef NSUInteger UIViewAutoresizing
;
286 #import <UIKit/UIAcceleration.h>
287 #import <UIKit/UIAccelerometer.h>
288 #import <UIKit/UIActionSheet.h>
289 #import <UIKit/UIActionSheet-Private.h>
290 #import <UIKit/UIAlertView.h>
291 #import <UIKit/UIAnimator.h>
292 #import <UIKit/UIApplication.h>
293 #import <UIKit/UIBarButtonItem.h>
294 #import <UIKit/UIBezierPath.h>
295 #import <UIKit/UIBezierPath-UIInternal.h>
296 #import <UIKit/UIButton.h>
297 #import <UIKit/UIButton-UIButtonPrivate.h>
298 #import <UIKit/UIColor.h>
299 #import <UIKit/UIColor-UIColorSystemColors.h>
300 #import <UIKit/UIControl-UIControlPrivate.h>
301 #import <UIKit/UICoverFlowLayer.h>
302 #import <UIKit/UIDefaultKeyboardInput.h>
303 #import <UIKit/UIDevice.h>
304 #import <UIKit/UIEvent.h>
305 #import <UIKit/UIFieldEditor.h>
306 #import <UIKit/UIFrameAnimation.h>
307 #import <UIKit/UIFont.h>
308 #import <UIKit/UIFormAssistant.h>
309 #import <UIKit/UIHardware.h>
310 #import <UIKit/UIFieldEditor.h>
311 #import <UIKit/UIImage.h>
312 #import <UIKit/UIImage-UIImageDeprecated.h>
313 #import <UIKit/UIImage-UIImageInternal.h>
314 #import <UIKit/UIImage-UIImagePrivate.h>
315 #import <UIKit/UIImageAndTextTableCell.h>
316 #import <UIKit/UIImageView.h>
317 #import <UIKit/UIKeyboard.h>
318 #import <UIKit/UIKeyboardImpl.h>
319 #import <UIKit/UIKeyboardLayoutRoman.h>
320 #import <UIKit/UIKeyboardSublayout.h>
321 #import <UIKit/UIModalView.h>
322 #import <UIKit/UIModalView-Private.h>
323 #import <UIKit/UINavigationBar.h>
324 #import <UIKit/UINavigationBar-Static.h>
325 #import <UIKit/UINavigationButton.h>
326 #import <UIKit/UINavigationController.h>
327 #import <UIKit/UINavigationItem.h>
328 #import <UIKit/UIOldSliderControl.h>
329 #import <UIKit/UIPreferencesControlTableCell.h>
330 #import <UIKit/UIPreferencesTable.h>
331 #import <UIKit/UIPreferencesTableCell.h>
332 #import <UIKit/UIPreferencesTextTableCell.h>
333 #import <UIKit/UIProgressBar.h>
334 #import <UIKit/UIProgressHUD.h>
335 #import <UIKit/UIProgressHUD-Deprecated.h>
336 #import <UIKit/UIProgressIndicator.h>
337 #import <UIKit/UIPushButton.h>
338 #import <UIKit/UIScreen.h>
339 #import <UIKit/UISearchField.h>
340 #import <UIKit/UISegmentedControl.h>
341 #import <UIKit/UISectionList.h>
342 #import <UIKit/UISimpleTableCell.h>
343 #import <UIKit/_UISwitchSlider.h>
344 #import <UIKit/UITableCell.h>
345 #import <UIKit/UITableColumn.h>
346 #import <UIKit/UITableView.h>
347 #import <UIKit/UITableViewCell.h>
348 #import <UIKit/UITableViewCell-UITableViewCellInternal.h>
349 #import <UIKit/UITableViewCell-UITableViewCellStatic.h>
350 #import <UIKit/UITableViewController.h>
351 #import <UIKit/UITableViewDelegate-Protocol.h>
352 #import <UIKit/UITextField.h>
353 #import <UIKit/UITextInputTraits.h>
354 #import <UIKit/UITextLabel.h>
355 #import <UIKit/UITextView.h>
356 #import <UIKit/UIThreePartButton.h>
357 #import <UIKit/UITabBar.h>
358 #import <UIKit/UITabBar-UITabBarPrivate.h>
359 #import <UIKit/UITabBarItem.h>
360 #import <UIKit/UIToolbar.h>
361 #import <UIKit/UIToolbar-UIButtonBarPrivate.h>
362 #import <UIKit/UITouch.h>
363 #import <UIKit/UITransitionView.h>
364 #import <UIKit/UIView-Animation.h>
365 #import <UIKit/UIView-Deprecated.h>
366 #import <UIKit/UIView-Geometry.h>
367 #import <UIKit/UIView-Gestures.h>
368 #import <UIKit/UIView-Hierarchy.h>
369 #import <UIKit/UIView-Internal.h>
370 #import <UIKit/UIView-Rendering.h>
371 #import <UIKit/UIViewController.h>
372 #import <UIKit/UIWebDocumentView.h>
373 #import <UIKit/UIWebDocumentView-Forms.h>
374 #import <UIKit/UIWebDocumentView-Interaction.h>
375 #import <UIKit/UIWebDocumentView-Messaging.h>
376 #import <UIKit/UIWebView.h>
377 #import <UIKit/UIWindow.h>
378 #import <UIKit/UIWindow-Static.h>
380 #import <UIKit/NSIndexPath-UITableView.h>
382 #import <UIKit/NSString-UIKBExtras.h>
383 #import <UIKit/NSString-UIStringDrawing.h>
384 #import <UIKit/NSString-UIStringDrawingDeprecated.h>
386 #import <UIKit/NSURL-UIKitAdditions.h>
388 @protocol UIApplicationDelegate
<NSObject
>
395 int UIApplicationMain(int argc
, char *argv
[], NSString
*principalClassName
, NSString
*delegateClassName
);
397 UIImage
*_UIImageWithName(NSString
*name
);
399 NSData
*UIImageJPEGRepresentation(UIImage
*image
);
400 NSData
*UIImagePNGRepresentation(UIImage
*image
);
402 CGContextRef
UIGraphicsGetCurrentContext(void);
403 UIWindow
*UIWindowFindWithWindowRef(GSWindowRef window
);
405 NSString
*UIFormattedPhoneNumberFromString(NSString
*string
);
406 NSString
*UIUnformattedPhoneNumberFromString(NSString
*string
);
408 void UIRectFill(CGRect rect
);
409 void UISetColor(CGColorRef color
);
410 void UISetSystemColor(unsigned color
);
412 GSFontRef
UISystemFontCreate(unsigned size
, bool bold
);
413 GSFontRef
UISystemFontForSize(unsigned size
);
414 GSFontRef
UISystemFontBoldForSize(unsigned size
);
416 void UIApplicationUseLegacyEvents(BOOL use
);
417 void UIKeyboardEnableAutomaticAppearance(void);
418 void UIKeyboardDisableAutomaticAppearance(void);
420 BOOL
UIKeyboardInputModeUsesKBStar(NSString
*);
422 extern NSString
* const kUIButtonBarButtonAction
;
423 extern NSString
* const kUIButtonBarButtonInfo
;
424 extern NSString
* const kUIButtonBarButtonInfoOffset
;
425 extern NSString
* const kUIButtonBarButtonSelectedInfo
;
426 extern NSString
* const kUIButtonBarButtonStyle
;
427 extern NSString
* const kUIButtonBarButtonTag
;
428 extern NSString
* const kUIButtonBarButtonTarget
;
429 extern NSString
* const kUIButtonBarButtonTitle
;
430 extern NSString
* const kUIButtonBarButtonTitleVerticalHeight
;
431 extern NSString
* const kUIButtonBarButtonTitleWidth
;
432 extern NSString
* const kUIButtonBarButtonType
;
434 extern NSString
* const UIKeyboardWillShowNotification
;
435 extern NSString
* const UIKeyboardDidShowNotification
;
436 extern NSString
* const UIKeyboardWillHideNotification
;
437 extern NSString
* const UIKeyboardDidHideNotification
;
438 extern NSString
* const UIKeyboardCenterBeginUserInfoKey
;
439 extern NSString
* const UIKeyboardCenterEndUserInfoKey
;
440 extern NSString
* const UIKeyboardBoundsUserInfoKey
;
442 extern NSString
* const UIWebViewDidReceiveMessageNotification
;
443 extern NSString
* const UIWebViewDidClearMessagesNotification
;
445 extern float const UIWebViewGrowsAndShrinksToFitHeight
;
446 extern float const UIWebViewGrowsAndShrinksToFitWidth
;
447 extern float const UIWebViewScalesToFitScale
;
449 extern UIApplication
* const UIApp
;
451 //UIFont *UISystemFontWithSize(CGFloat size);
457 #endif//UIKIT_UIKIT_H_