X-Git-Url: https://git.saurik.com/iphone-api.git/blobdiff_plain/e37693b868cb94b5b3ee85ef18c8f2d03246f427..63e8eac2f56d4adec55f1f4b450938dcccce2853:/UIKit/UIKit.h?ds=sidebyside diff --git a/UIKit/UIKit.h b/UIKit/UIKit.h index 024de93..2d0bf5b 100644 --- a/UIKit/UIKit.h +++ b/UIKit/UIKit.h @@ -3,8 +3,11 @@ @class NSString; -#import +#import #import +#import + +typedef double UIAccelerationValue; /*XXX:*/typedef struct { float top; @@ -116,6 +119,17 @@ typedef enum { UIDeviceOrientationFaceDown, } UIDeviceOrientation; +typedef enum { + UIGestureAttributeMinDegrees, /*float*/ + UIGestureAttributeMaxDegrees, /*float*/ + UIGestureAttributeMinScale, /*float*/ + UIGestureAttributeMaxScale, /*float*/ + UIGestureAttributeIsZoomRubberBandEnabled, /*BOOL*/ + UIGestureAttributeZoomsFromCurrentToMinOrMax, /*BOOL*/ + UIGestureAttributeVisibleSize, /*CGSize*/ + UIGestureAttributeUpdatesScroller, /*BOOL*/ +} UIGestureAttribute; + typedef enum { UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown, @@ -123,6 +137,17 @@ typedef enum { UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft, } UIInterfaceOrientation; +typedef enum { + UIKeyboardTypeDefault, + UIKeyboardTypeASCIICapable, + UIKeyboardTypeNumbersAndPunctuation, + UIKeyboardTypeURL, + UIKeyboardTypeNumberPad, + UIKeyboardTypePhonePad, + UIKeyboardTypeNamePhonePad, + UIKeyboardTypeEmailAddress, +} UIKeyboardType; + typedef enum { UINavigationButtonStyleNormal, UINavigationButtonStyleBack, @@ -139,6 +164,26 @@ typedef enum { UIProgressIndicatorStyleTinyWhite, } UIProgressIndicatorStyle; +typedef enum { + UIReturnKeyDefault, + UIReturnKeyGo, + UIReturnKeyGoogle, + UIReturnKeyJoin, + UIReturnKeyNext, + UIReturnKeyRoute, + UIReturnKeySearch, + UIReturnKeySend, + UIReturnKeyYahoo, + UIReturnKeyDone, + UIReturnKeyEmergencyCall, +} UIReturnKeyType; + +typedef enum { + UISegmentedControlStylePlain, + UISegmentedControlStyleBordered, + UISegmentedControlStyleBar, +} UISegmentedControlStyle; + typedef enum { UITableViewCellEditingStyleNone, UITableViewCellEditingStyleDelete, @@ -159,11 +204,24 @@ typedef enum { } UITableViewRowAnimation; typedef enum { - UITextAlignmentLeft = 0, - UITextAlignmentCenter = 1, - UITextAlignmentRight = 2, + UITextAlignmentLeft, + UITextAlignmentCenter, + UITextAlignmentRight, } UITextAlignment; +typedef enum { + UITextAutocapitalizationTypeNone, + UITextAutocapitalizationTypeWords, + UITextAutocapitalizationTypeSentences, + UITextAutocapitalizationTypeAllCharacters, +} UITextAutocapitalizationType; + +typedef enum { + UITextAutocorrectionTypeDefault, + UITextAutocorrectionTypeNo, + UITextAutocorrectionTypeYes, +} UITextAutocorrectionType; + typedef enum { UITransitionNone = 0, UITransitionPushFromRight = 1, @@ -190,6 +248,9 @@ enum { UIViewAutoresizingFlexibleBottomMargin = 1 << 5, }; typedef NSUInteger UIViewAutoresizing; +#import +#import +#import #import #import #import @@ -226,6 +287,7 @@ enum { #import #import #import +#import #import #import #import @@ -236,6 +298,7 @@ enum { #import #import #import +#import #import #import #import @@ -252,12 +315,14 @@ enum { #import #import #import +#import #import #import #import #import #import #import +#import #import #import #import @@ -274,7 +339,8 @@ enum { #import -#import +@protocol UIApplicationDelegate +@end #ifdef __cplusplus extern "C" { @@ -282,9 +348,18 @@ extern "C" { int UIApplicationMain(int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName); +UIImage *_UIImageWithName(NSString *name); + +NSData *UIImageJPEGRepresentation(UIImage *image); +NSData *UIImagePNGRepresentation(UIImage *image); + CGContextRef UIGraphicsGetCurrentContext(void); UIWindow *UIWindowFindWithWindowRef(GSWindowRef window); +GSFontRef UISystemFontCreate(unsigned size, bool bold); +GSFontRef UISystemFontForSize(unsigned size); +GSFontRef UISystemFontBoldForSize(unsigned size); + void UIApplicationUseLegacyEvents(BOOL use); void UIKeyboardEnableAutomaticAppearance(void); void UIKeyboardDisableAutomaticAppearance(void); @@ -312,8 +387,14 @@ extern NSString * const UIKeyboardBoundsUserInfoKey; extern NSString * const UIWebViewDidReceiveMessageNotification; extern NSString * const UIWebViewDidClearMessagesNotification; +extern float const UIWebViewGrowsAndShrinksToFitHeight; +extern float const UIWebViewGrowsAndShrinksToFitWidth; +extern float const UIWebViewScalesToFitScale; + extern UIApplication * const UIApp; +//UIFont *UISystemFontWithSize(CGFloat size); + #ifdef __cplusplus } #endif