Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Commit

Permalink
UIKit: Eliminated UIKIT_EXTERN. Symbolication: VMURangeMake. Correcte…
Browse files Browse the repository at this point in the history
…d prototype for GSEventInitialize.
  • Loading branch information
kennytm committed Oct 4, 2009
1 parent a0fc3d8 commit a3853d1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 41 deletions.
4 changes: 3 additions & 1 deletion GraphicsServices/GSEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "GSWindow.h"
#include <mach/message.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreGraphics/CoreGraphics.h>

#if __cplusplus
extern "C" {
Expand Down Expand Up @@ -261,7 +263,7 @@ extern "C" {
void GSEventRunModal(Boolean disallow_restart);
void GSEventRun();

void GSEventInitialize();
void GSEventInitialize(Boolean registerPurple);

#pragma mark -
#pragma mark Sending events
Expand Down
9 changes: 9 additions & 0 deletions Symbolication/Symbolication-Structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ extern "C" {

extern VMURange VMUUnionRange(VMURange a, VMURange b);

static inline VMURange VMURangeMake(unsigned long long location, unsigned long long length) {
VMURange retval;
retval.location = location;
retval.length = length;
return retval;
}

static const VMURange VMURangeZero = {0, 0};

extern NSString* VMUSignatureArchitecture;
extern NSString* VMUSignatureHeaders;
extern NSString* VMUSignatureModifiedTime;
Expand Down
1 change: 0 additions & 1 deletion Symbolication/VMUMemory_File.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@
// in a protocol: -(id)view;
// in a protocol: -(id)swappedView;
@end

94 changes: 55 additions & 39 deletions UIKit/UIKit-Structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,49 +203,65 @@ typedef struct UIKeyboardAnimationGeometry {

@class UIKBKeyboard, UIKBKey, NSArray, NSString, NSBundle;


#if __cplusplus
extern "C" {
#endif

/*! Draw the keyboard background in the specified rectangle.
@param style iPhone-Standard or iPhone-Alert
*/
UIKIT_EXTERN void UIKBDrawKeyboardBackground(CGContextRef context, CGRect region, NSString* style);
void UIKBDrawKeyboardBackground(CGContextRef context, CGRect region, NSString* style);
/// Currently draws nothing.
UIKIT_EXTERN void UIKBDrawKeyboardOverlay(CGContextRef context, CGRect region, NSString* style);
UIKIT_EXTERN void UIKBDrawKey(CGContextRef context, UIKBKeyboard* keyboard, UIKBKey* key, int x);

UIKIT_EXTERN NSArray* UIKeyboardGetActiveInputModes();
UIKIT_EXTERN NSString* UIKeyboardGetCurrentInputMode();
UIKIT_EXTERN void UIKeyboardSetCurrentInputMode(NSString* mode);
UIKIT_EXTERN NSString* UIKeyboardLocalizedInputModeName(NSString* mode);
UIKIT_EXTERN NSString* UIKeyboardLocalizedString(NSString* theString, NSString* language, NSString* passNil);
UIKIT_EXTERN NSObject* UIKeyboardLocalizedObject(NSString* key, NSString* language, NSString* passNil, NSString* alsoPassNil);
UIKIT_EXTERN NSString* UIKeyboardGetCurrentUILanguage();
UIKIT_EXTERN NSArray* UIKeyboardGetSupportedInputModes();
UIKIT_EXTERN void UIKeyboardSetActiveInputModes(NSArray* modes);
UIKIT_EXTERN NSBundle* UIKeyboardBundleForInputMode(NSString* mode);

UIKIT_EXTERN NSString* UIKeyboardStringDismiss;
UIKIT_EXTERN NSString* UIKeyboardStringConfirm;
UIKIT_EXTERN NSString* UIKeyboardStringNextCandidate;
UIKIT_EXTERN NSString* UIKeyboardKeyReturn;
UIKIT_EXTERN NSString* UIKeyboardKeySpace;

typedef struct _UIKBTheme {
// Foreground Gradient: For the background of the key.
CGGradientRef backgroundGradient, foregroundGradient, shadowGradient;
// Symbol color: For the font color of the key.
CGColorRef backgroundColor, foregroundColor, highlightColor, symbolColor, symbolSecondaryColor;
// Etch color: For the color of the key's label's shadow.
CGColorRef etchColor, separatorLightColor, separatorMidColor, separatorDarkColor;
void UIKBDrawKeyboardOverlay(CGContextRef context, CGRect region, NSString* style);
void UIKBDrawKey(CGContextRef context, UIKBKeyboard* keyboard, UIKBKey* key, int x);

NSArray* UIKeyboardGetActiveInputModes();
NSString* UIKeyboardGetCurrentInputMode();
void UIKeyboardSetCurrentInputMode(NSString* mode);
NSString* UIKeyboardLocalizedInputModeName(NSString* mode);
NSString* UIKeyboardLocalizedString(NSString* theString, NSString* language, NSString* passNil);
NSObject* UIKeyboardLocalizedObject(NSString* key, NSString* language, NSString* passNil, NSString* alsoPassNil);
NSString* UIKeyboardGetCurrentUILanguage();
NSArray* UIKeyboardGetSupportedInputModes();
void UIKeyboardSetActiveInputModes(NSArray* modes);
NSBundle* UIKeyboardBundleForInputMode(NSString* mode);

extern NSString* UIKeyboardStringDismiss;
extern NSString* UIKeyboardStringConfirm;
extern NSString* UIKeyboardStringNextCandidate;
extern NSString* UIKeyboardKeyReturn;
extern NSString* UIKeyboardKeySpace;

uint32_t _30, _34, _38, _3c, _40, _44;
typedef struct _UIKBTheme {
// Foreground Gradient: For the background of the key.
CGGradientRef backgroundGradient, foregroundGradient, shadowGradient;
// Symbol color: For the font color of the key.
CGColorRef backgroundColor, foregroundColor, highlightColor, symbolColor, symbolSecondaryColor;
// Etch color: For the color of the key's label's shadow.
CGColorRef etchColor, separatorLightColor, separatorMidColor, separatorDarkColor;

uint32_t _30, _34, _38, _3c, _40, _44;

CFStringRef fontName, fontSecondaryName;
// Font size: the maximum font size.
CGFloat fontSize, fontSecondarySize, fontKern, fontSecondaryKern, minFontSize;
CGFloat keyRoundRectRadius;
NSUInteger UID;
}* UIKBThemeRef;
UIKBThemeRef UIKBThemeCreate(UIKBKeyboard* keyboard, UIKBKey* key, int x);

UIImage* _UIImageWithName(NSString* filename);

CFStringRef fontName, fontSecondaryName;
// Font size: the maximum font size.
CGFloat fontSize, fontSecondarySize, fontKern, fontSecondaryKern, minFontSize;
CGFloat keyRoundRectRadius;
NSUInteger UID;
}* UIKBThemeRef;
UIKBThemeRef UIKBThemeCreate(UIKBKeyboard* keyboard, UIKBKey* key, int x);

UIKIT_EXTERN UIImage* _UIImageWithName(NSString* filename);
/// Check the version of UIKit the application is linked to
typedef enum {
UIKitVersion2_0 = 0,
UIKitVersion2_1 = 1, // I'm not sure about these 3.
UIKitVersion2_2 = 2,
UIKitVersion3_0 = 3,
UIKitVersion3_1 = 4,
} UIKitVersion;
BOOL _UIApplicationLinkedOnOrAfter(UIKitVersion version);

#if __cplusplus
}
#endif

0 comments on commit a3853d1

Please sign in to comment.