]> git.saurik.com Git - iphone-api.git/commitdiff
Unlocked some more APIs.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 2 Jan 2009 23:38:41 +0000 (23:38 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 2 Jan 2009 23:38:41 +0000 (23:38 +0000)
UIKit/UIAccelerometer.h
UIKit/UIApplication.h
UIKit/UIKeyboardCandidateList-Protocol.h
UIKit/UIKit.h
UIKit/UISegmentedControl.h

index ac3846acd5fb3208b672ef78f5d557041069785a..b6c8a24a84495ef77c5ec2102a34fd569f19cecc 100644 (file)
@@ -6,6 +6,8 @@
 
 #import <Foundation/NSObject.h>
 
+@protocol UIAccelerometerDelegate;
+
 @interface UIAccelerometer : NSObject
 {
     double _updateInterval;
 
 @end
 
+@class UIAcceleration;
+
+@protocol UIAccelerometerDelegate<NSObject>
+@optional
+- (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration;
+@end
+
index 629fd0411ed510a84bbc67d4466f4bb87b99639f..60452d617c39ea381be00a73a3f195532cfeaa36 100644 (file)
@@ -7,10 +7,11 @@
 #import <UIKit/UIResponder.h>
 
 @class NSArray, NSMutableSet, UIEvent;
+@protocol UIApplicationDelegate;
 
 @interface UIApplication : UIResponder
 {
-    id /*XXX:<UIApplicationDelegate>*/ _delegate;
+    id <UIApplicationDelegate> _delegate;
     struct __CFDictionary *_touchMap;
     NSMutableSet *_exclusiveTouchWindows;
     UIEvent *_event;
 - (BOOL)launchApplicationWithIdentifier:(id)fp8 suspended:(BOOL)fp12;
 - (void)_runSpringboardCommand:(id)fp8;
 - (void)addStatusBarImageNamed:(id)fp8 removeOnAbnormalExit:(BOOL)fp12;
+#if 1 // iPhoneOS 2.2
+- (void)addStatusBarImageNamed:(id)fp8 removeOnExit:(BOOL)fp12;
+#endif
 - (void)addStatusBarImageNamed:(id)fp8;
 - (void)removeStatusBarImageNamed:(id)fp8;
 - (id)applicationBadge;
index 2bd7dfeea6e1b4c05170e6be2825a44a47542881..2b830559061083a0f8a8c0a25215a18df3316c33 100644 (file)
@@ -4,8 +4,6 @@
  *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
  */
 
-#import "NSObject-Protocol.h"
-
 @protocol UIKeyboardCandidateList <NSObject>
 - (void)setCandidates:(id)fp8 inlineText:(id)fp12 inlineRect:(struct CGRect)fp16 maxX:(float)fp32 layout:(BOOL)fp36;
 - (void)layout;
index 024de93657d8f86832572778ca6371a323239582..ef9d6f14669aa2399845920cfd1fba242fac3ca4 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,
@@ -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 <UIKit/UIAcceleration.h>
+#import <UIKit/UIAccelerometer.h>
+#import <UIKit/UIActionSheet.h>
 #import <UIKit/UIActionSheet-Private.h>
 #import <UIKit/UIAlertView.h>
 #import <UIKit/UIAnimator.h>
@@ -226,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>
@@ -236,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>
@@ -252,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>
@@ -274,7 +339,8 @@ enum {
 
 #import <UIKit/NSURL-UIKitAdditions.h>
 
-#import <CoreGraphics/CoreGraphics.h>
+@protocol UIApplicationDelegate<NSObject>
+@end
 
 #ifdef __cplusplus
 extern "C" {
@@ -282,6 +348,11 @@ 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);
 
@@ -312,8 +383,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
index 7fb1c5dbe6c437c761ddb50a4ba11837b54b04f4..8451ab4b92af22c81f918a8aa3cc2bdccfa67772 100644 (file)
@@ -6,8 +6,6 @@
 
 #import <UIKit/UIControl.h>
 
-#import "NSCoding-Protocol.h"
-
 @class NSMutableArray, UIColor, UIView;
 
 @interface UISegmentedControl : UIControl <NSCoding>