]> git.saurik.com Git - iphone-api.git/blobdiff - UIKit/UIKit.h
Added UISystemFont*.
[iphone-api.git] / UIKit / UIKit.h
index 73d559f67685bd22b8244c8d1b62be14a61cac5c..2d0bf5b789cbb8b11794fd242c1ff236d821281e 100644 (file)
@@ -3,8 +3,11 @@
 
 @class NSString;
 
-#import <Foundation/NSObjCRuntime.h>
+#import <Foundation/Foundation.h>
 #import <GraphicsServices/GraphicsServices.h>
+#import <CoreGraphics/CoreGraphics.h>
+
+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,
@@ -130,6 +155,35 @@ typedef enum {
     UINavigationButtonStyleDestructive
 } UINavigationButtonStyle;
 
+typedef enum {
+    UIProgressIndicatorStyleLargeWhite,
+    UIProgressIndicatorStyleMediumWhite,
+    UIProgressIndicatorStyleMediumBrown,
+    UIProgressIndicatorStyleSmallWhite,
+    UIProgressIndicatorStyleSmallBlack,
+    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,
@@ -150,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,
@@ -181,6 +248,9 @@ enum {
     UIViewAutoresizingFlexibleBottomMargin = 1 << 5,
 }; typedef NSUInteger UIViewAutoresizing;
 
+#import <UIKit/UIAcceleration.h>
+#import <UIKit/UIAccelerometer.h>
+#import <UIKit/UIActionSheet.h>
 #import <UIKit/UIActionSheet-Private.h>
 #import <UIKit/UIAlertView.h>
 #import <UIKit/UIAnimator.h>
@@ -217,6 +287,7 @@ enum {
 #import <UIKit/UINavigationController.h>
 #import <UIKit/UINavigationItem.h>
 #import <UIKit/UIOldSliderControl.h>
+#import <UIKit/UIPreferencesControlTableCell.h>
 #import <UIKit/UIPreferencesTable.h>
 #import <UIKit/UIPreferencesTableCell.h>
 #import <UIKit/UIPreferencesTextTableCell.h>
@@ -227,6 +298,7 @@ enum {
 #import <UIKit/UIPushButton.h>
 #import <UIKit/UIScreen.h>
 #import <UIKit/UISearchField.h>
+#import <UIKit/UISegmentedControl.h>
 #import <UIKit/UISectionList.h>
 #import <UIKit/UISimpleTableCell.h>
 #import <UIKit/_UISwitchSlider.h>
@@ -243,12 +315,14 @@ enum {
 #import <UIKit/UIThreePartButton.h>
 #import <UIKit/UIToolbar.h>
 #import <UIKit/UIToolbar-UIButtonBarPrivate.h>
+#import <UIKit/UITouch.h>
 #import <UIKit/UITransitionView.h>
 #import <UIKit/UIView-Animation.h>
 #import <UIKit/UIView-Deprecated.h>
 #import <UIKit/UIView-Geometry.h>
 #import <UIKit/UIView-Gestures.h>
 #import <UIKit/UIView-Hierarchy.h>
+#import <UIKit/UIView-Internal.h>
 #import <UIKit/UIView-Rendering.h>
 #import <UIKit/UIViewController.h>
 #import <UIKit/UIWebDocumentView.h>
@@ -263,7 +337,10 @@ enum {
 #import <UIKit/NSString-UIStringDrawing.h>
 #import <UIKit/NSString-UIStringDrawingDeprecated.h>
 
-#import <CoreGraphics/CoreGraphics.h>
+#import <UIKit/NSURL-UIKitAdditions.h>
+
+@protocol UIApplicationDelegate<NSObject>
+@end
 
 #ifdef __cplusplus
 extern "C" {
@@ -271,17 +348,33 @@ 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);
 
-
-#ifdef __cplusplus
-}
-#endif
+extern NSString * const kUIButtonBarButtonAction;
+extern NSString * const kUIButtonBarButtonInfo;
+extern NSString * const kUIButtonBarButtonInfoOffset;
+extern NSString * const kUIButtonBarButtonSelectedInfo;
+extern NSString * const kUIButtonBarButtonStyle;
+extern NSString * const kUIButtonBarButtonTag;
+extern NSString * const kUIButtonBarButtonTarget;
+extern NSString * const kUIButtonBarButtonTitle;
+extern NSString * const kUIButtonBarButtonTitleVerticalHeight;
+extern NSString * const kUIButtonBarButtonTitleWidth;
+extern NSString * const kUIButtonBarButtonType;
 
 extern NSString * const UIKeyboardWillShowNotification;
 extern NSString * const UIKeyboardDidShowNotification;
@@ -294,4 +387,16 @@ 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
+
 #endif//UIKIT_UIKIT_H_