Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Mar 5, 2023
1 parent cd4df31 commit cd79f9b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CoreMedia/CoreMedia.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CFDictionaryRef CMCopyDictionaryOfAttachments(CFAllocatorRef allocator, CMAttach
CFDictionaryRef CMFormatDescriptionGetExtensions(CMFormatDescriptionRef desc);
CFDictionaryRef CMTimeCopyAsDictionary(CMTime time, CFAllocatorRef allocator);

CFNotificationCenterRef CMNotificationCenterCreate(void); // CMNotificationCenterRef ?
CMNotificationCenterRef CMNotificationCenterCreate(void);

CFPropertyListRef CMFormatDescriptionGetExtension(CMFormatDescriptionRef desc, CFStringRef extensionKey);

Expand Down
2 changes: 1 addition & 1 deletion GraphicsServices/GraphicsServices.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void GSEventSetBacklightLevel(float level);
void GSEventSetBacklightFactor(int factor);
void GSEventSetType(GSEventRef event, GSEventType type);
void GSEventSetPathInfoAtIndex(GSEventRef event, GSPathInfo pathInfo, CFIndex index);
// void GSEventSetSensitivity(int (float) sensitivity);
void GSEventSetSensitivity(unsigned sensitivity);
void GSEventSetHardwareKeyboardAttached(Boolean attached);
void GSEventRemoveShouldRouteToFrontMost(GSEventRef event);
void GSEventRotateSimulator(int x);
Expand Down
13 changes: 6 additions & 7 deletions GraphicsServices/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ typedef struct GSScrollWheelInfo {
int deltaX;
} GSScrollWheelInfo;

// Suspect that there are more to this since OS 3.2
typedef struct GSEventRecord {
GSEventType type;
GSEventSubType subtype;
Expand All @@ -172,14 +171,14 @@ typedef struct GSEventRecord {
uint64_t timestamp;
GSWindowRef window;
GSEventFlags flags;
unsigned senderPID;
pid_t senderPID;
CFIndex infoSize;
#if !TARGET_OS_SIMULATOR && !TARGET_OS_OSX
uint64_t HIDtime;
#endif
unit8_t data[];
} GSEventRecord;

typedef struct GSEvent {
CFRuntimeBase _base;
GSEventRecord record;
} GSEvent;
typedef struct GSEvent *GSEventRef;
typedef struct __GSEvent *GSEventRef;

#endif
2 changes: 1 addition & 1 deletion IOKit/IOKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ IOHIDEventRef IOHIDEventGetEventWithOptions(IOHIDEventRef event, IOHIDEventType
IOHIDEventRef IOHIDEventGetEvent(IOHIDEventRef event, IOHIDEventType type);
IOHIDEventRef IOHIDServiceClientCopyEvent(IOHIDServiceClientRef, int64_t, int32_t, int64_t);

IOHIDEventRef _IOHIDEventGetContext(IOHIDEventRef event); // get record size
IOHIDEventRef _IOHIDEventGetContext(IOHIDEventRef event);

IOHIDEventType IOHIDEventGetType(IOHIDEventRef event);

Expand Down
32 changes: 18 additions & 14 deletions UIKit/UIKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ NSData *UIImageJPEGRepresentation(UIImage *image, CGFloat compressionQuality);

UIImage *UIGraphicsGetImageFromCurrentImageContext(void);

CGRect UIRectCenteredAboutPoint(CGRect, CGPoint, CGFloat, CGFloat);
CGRect UIRectCenteredAboutPointScale(CGRect, CGPoint);
CGRect UIRectInset(CGRect, CGFloat top, CGFloat right, CGFloat bottom, CGFloat left);
CGRect UIRectInsetEdges(CGRect, UIRectEdge edges, CGFloat v);
CGRect UIRectCenteredAboutPoint(CGRect rect, CGPoint center);
CGRect UIRectCenteredAboutPointScale(CGRect rect, CGPoint center, CGFloat scale);
CGRect UIRectCenteredXInRect(CGRect rect, CGRect bounds);
CGRect UIRectCenteredYInRect(CGRect rect, CGRect bounds);
CGRect UIRectCenteredIntegralRect(CGRect rect, CGRect bounds);
CGRect UIRectCenteredIntegralRectScale(CGRect rect, CGRect bounds, CGFloat scale);
CGRect UIRectInset(CGRect rect, CGFloat top, CGFloat right, CGFloat bottom, CGFloat left);
CGRect UIRectInsetEdges(CGRect rect, UIRectEdge edges, CGFloat v);
CGRect UIRectIntegralWithScale(CGRect rect, CGFloat scale);
CGRect CGRectFromString(NSString *str);

CGSize CGSizeFromString(NSString *str);
Expand All @@ -38,16 +43,15 @@ CGPoint CGPointFromString(NSString *str);

CGVector CGVectorFromString(NSString *str);

CGFloat UIRoundToScale(CGFloat, CGFloat);
CGFloat UIRoundToViewScale(CGFloat);
CGFloat UIRoundToScreenScale(CGFloat);
CGFloat UIFloorToScale(CGFloat, CGFloat);
CGFloat UIFloorToViewScale(CGFloat);
CGFloat UIFloorToScreenScale(CGFloat);
CGFloat UICeilToScale(CGFloat, CGFloat);
CGFloat UICeilToViewScale(CGFloat);
CGFloat UICeilToScreenScale(CGFloat);
// CGFloat UIRectCenteredXInRect(CGRect);
CGFloat UIRoundToScale(CGFloat value, CGFloat scale);
CGFloat UIRoundToViewScale(CGFloat value, id view);
CGFloat UIRoundToScreenScale(CGFloat value, id screen);
CGFloat UIFloorToScale(CGFloat value, CGFloat scale);
CGFloat UIFloorToViewScale(CGFloat value, id view);
CGFloat UIFloorToScreenScale(CGFloat value, id screen);
CGFloat UICeilToScale(CGFloat value, CGFloat scale);
CGFloat UICeilToViewScale(CGFloat value, id view);
CGFloat UICeilToScreenScale(CGFloat value, id screen);
CGFloat UIAnimationDragCoefficient(void);
CGFloat UIDistanceBetweenPoints(CGPoint a, CGPoint b);

Expand Down

0 comments on commit cd79f9b

Please sign in to comment.