Fix int-conversion error

This commit is contained in:
Thomas A 2022-11-20 10:30:36 -08:00
parent b22b56f497
commit e00b4468c4
19 changed files with 97 additions and 5 deletions

View File

@ -1162,6 +1162,12 @@ static NSString *NSStringFromCellType(NSCellType type) {
NSStringFromCellType(_cellType), _font, NSStringFromCellType(_cellType), _font,
_objectValue]; _objectValue];
} }
- (BOOL) usesSignleLineMode {
NSLog(@"Stub called: usesSignleLineMode in %@", [self class]);
return NO;
}
@end @end
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill, void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,

View File

@ -290,6 +290,8 @@ enum {
- (void) setSendsActionOnEndEditing: (BOOL) flag; - (void) setSendsActionOnEndEditing: (BOOL) flag;
- (BOOL) sendsActionOnEndEditing; - (BOOL) sendsActionOnEndEditing;
- (BOOL) usesSignleLineMode;
@end @end
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill, void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,

View File

@ -196,4 +196,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
_relationshipKeyPathsForPrefetching = value; _relationshipKeyPathsForPrefetching = value;
} }
- (NSUInteger) _countInContext: (NSManagedObjectContext *) _context {
NSLog(@"Stub called: _countInContext in %@", [self class]);
return 0;
}
@end @end

View File

@ -88,4 +88,6 @@ typedef NSUInteger NSFetchRequestResultType;
- (void) setRelationshipKeyPathsForPrefetching: (NSArray *) value; - (void) setRelationshipKeyPathsForPrefetching: (NSArray *) value;
- (NSUInteger) _countInContext: (NSManagedObjectContext *) _context;
@end @end

View File

@ -29,6 +29,16 @@ CGContextRef CGBitmapContextCreate(void *bytes, size_t width, size_t height,
bytesPerRow, colorSpace, bitmapInfo); bytesPerRow, colorSpace, bitmapInfo);
} }
CGContextRef CGBitmapContextCreateWithData(void *data, size_t width, size_t height,
size_t bitsPerComponent, size_t bytesPerRow,
CGColorSpaceRef space, uint32_t bitmapInfo,
CGBitmapContextReleaseDataCallback releaseCallback,
void *releaseInfo)
{
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}
void *CGBitmapContextGetData(CGContextRef self) { void *CGBitmapContextGetData(CGContextRef self) {
return O2BitmapContextGetData(self); return O2BitmapContextGetData(self);
} }

View File

@ -0,0 +1,11 @@
#import <CoreGraphics/CGDisplayConfiguration.h>
CGError CGDisplayRegisterReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}
CGError CGDisplayRemoveReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}

View File

@ -0,0 +1,6 @@
#import <CoreGraphics/CGPSConverter.h>
extern CGPSConverterRef CGPSConverterCreate(void *info, const CGPSConverterCallbacks *callbacks, CFDictionaryRef options) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}

View File

@ -0,0 +1,11 @@
#import <CoreGraphics/CGRemoteOperation.h>
CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}
void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}

View File

@ -24,6 +24,7 @@ set_property(SOURCE
CGDataConsumer.m CGDataConsumer.m
CGDataProvider.m CGDataProvider.m
CGDirectDisplay.m CGDirectDisplay.m
CGDisplayConfiguration.m
CGFont.m CGFont.m
CGFunction.m CGFunction.m
CGGeometry.m CGGeometry.m
@ -39,6 +40,8 @@ set_property(SOURCE
CGPDFContext.m CGPDFContext.m
CGPDFDocument.m CGPDFDocument.m
CGPDFPage.m CGPDFPage.m
CGPSConverter.m
CGRemoteOperation.m
CGShading.m CGShading.m
CGWindow.m CGWindow.m
CGSubWindow.m CGSubWindow.m

View File

@ -12,6 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typedef void (*CGBitmapContextReleaseDataCallback)(void *userInfo, void *data); typedef void (*CGBitmapContextReleaseDataCallback)(void *userInfo, void *data);
COREGRAPHICS_EXPORT CGContextRef CGBitmapContextCreate(void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorSpace, CGBitmapInfo bitmapInfo); COREGRAPHICS_EXPORT CGContextRef CGBitmapContextCreate(void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorSpace, CGBitmapInfo bitmapInfo);
COREGRAPHICS_EXPORT CGContextRef CGBitmapContextCreateWithData(void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef space, uint32_t bitmapInfo, CGBitmapContextReleaseDataCallback releaseCallback, void *releaseInfo);
COREGRAPHICS_EXPORT void *CGBitmapContextGetData(CGContextRef self); COREGRAPHICS_EXPORT void *CGBitmapContextGetData(CGContextRef self);
COREGRAPHICS_EXPORT size_t CGBitmapContextGetWidth(CGContextRef self); COREGRAPHICS_EXPORT size_t CGBitmapContextGetWidth(CGContextRef self);

View File

@ -1,4 +1,5 @@
#import <CoreFoundation/CoreFoundation.h> #import <CoreFoundation/CoreFoundation.h>
#import <CoreGraphics/CGGeometry.h>
typedef CF_OPTIONS(uint32_t, CGDisplayChangeSummaryFlags) { typedef CF_OPTIONS(uint32_t, CGDisplayChangeSummaryFlags) {
kCGDisplayBeginConfigurationFlag = (1 << 0), kCGDisplayBeginConfigurationFlag = (1 << 0),
@ -13,3 +14,8 @@ typedef CF_OPTIONS(uint32_t, CGDisplayChangeSummaryFlags) {
kCGDisplayUnMirrorFlag = (1 << 11), kCGDisplayUnMirrorFlag = (1 << 11),
kCGDisplayDesktopShapeChangedFlag = (1 << 12), kCGDisplayDesktopShapeChangedFlag = (1 << 12),
}; };
typedef void (*CGDisplayReconfigurationCallBack)(CGDirectDisplayID display, CGDisplayChangeSummaryFlags flags, void *userInfo);
extern CGError CGDisplayRegisterReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo);
extern CGError CGDisplayRemoveReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo);

View File

@ -20,3 +20,5 @@ typedef struct CGPSConverterCallbacks {
CGPSConverterMessageCallback noteMessage; CGPSConverterMessageCallback noteMessage;
CGPSConverterReleaseInfoCallback releaseInfo; CGPSConverterReleaseInfoCallback releaseInfo;
} CGPSConverterCallbacks; } CGPSConverterCallbacks;
extern CGPSConverterRef CGPSConverterCreate(void *info, const CGPSConverterCallbacks *callbacks, CFDictionaryRef options);

View File

@ -19,6 +19,9 @@
#ifndef CGREMOTEOPERATION_H #ifndef CGREMOTEOPERATION_H
#define CGREMOTEOPERATION_H #define CGREMOTEOPERATION_H
#import <CoreGraphics/CGGeometry.h>
#include <CoreGraphics/CGError.h> #include <CoreGraphics/CGError.h>
#include <stdint.h> #include <stdint.h>
@ -51,8 +54,12 @@ typedef struct CGScreenUpdateMoveDelta {
int32_t dX, dY; int32_t dX, dY;
} CGScreenUpdateMoveDelta; } CGScreenUpdateMoveDelta;
typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo);
#define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents) #define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents)
// TODO: All those deprecated functions // TODO: All those deprecated functions
extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
#endif #endif

View File

@ -16,6 +16,7 @@ include_directories(
set(CoreText_sources set(CoreText_sources
CTFont.m CTFont.m
CTParagraphStyle.m
KTFont.m KTFont.m
KTFont_FT.m KTFont_FT.m
constants.c constants.c

View File

@ -104,3 +104,8 @@ CGPathRef CTFontCreatePathForGlyph(CTFontRef self, CGGlyph glyph,
{ {
return (CGPathRef) [self createPathForGlyph: glyph transform: xform]; return (CGPathRef) [self createPathForGlyph: glyph transform: xform];
} }
CFArrayRef CTFontCopyAvailableTables(CTFontRef font, CTFontTableOptions options) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}

View File

@ -0,0 +1,11 @@
#import <CoreText/CTParagraphStyle.h>
CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}
bool CTParagraphStyleGetValueForSpecifier(CTParagraphStyleRef paragraphStyle, CTParagraphStyleSpecifier spec, size_t valueBufferSize, void *valueBuffer) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;
}

View File

@ -20,6 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <CoreGraphics/CGFont.h> #import <CoreGraphics/CGFont.h>
#import <CoreGraphics/CGPath.h> #import <CoreGraphics/CGPath.h>
#import <CoreText/CoreTextExport.h> #import <CoreText/CoreTextExport.h>
#import <CoreText/CTParagraphStyle.h>
typedef struct CF_BRIDGED_TYPE(id) KTFont *CTFontRef; typedef struct CF_BRIDGED_TYPE(id) KTFont *CTFontRef;
@ -88,4 +89,6 @@ CORETEXT_EXPORT CGPathRef CTFontCreatePathForGlyph(CTFontRef self,
CGGlyph glyph, CGGlyph glyph,
CGAffineTransform *xform); CGAffineTransform *xform);
CORETEXT_EXPORT CFArrayRef CTFontCopyAvailableTables(CTFontRef font, CTFontTableOptions options);
CF_IMPLICIT_BRIDGING_DISABLED CF_IMPLICIT_BRIDGING_DISABLED

View File

@ -1,5 +1,7 @@
#import <CoreFoundation/CFBase.h> #import <CoreFoundation/CFBase.h>
#include <stdint.h>
typedef const struct __CTParagraphStyle* CTParagraphStyleRef; typedef const struct __CTParagraphStyle* CTParagraphStyleRef;
typedef CF_ENUM(uint32_t, CTParagraphStyleSpecifier) { typedef CF_ENUM(uint32_t, CTParagraphStyleSpecifier) {
@ -59,3 +61,6 @@ typedef struct CTParagraphStyleSetting {
size_t valueSize; size_t valueSize;
const void* value; const void* value;
} CTParagraphStyleSetting; } CTParagraphStyleSetting;
extern CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount);
extern bool CTParagraphStyleGetValueForSpecifier(CTParagraphStyleRef paragraphStyle, CTParagraphStyleSpecifier spec, size_t valueBufferSize, void *valueBuffer);

View File

@ -34,8 +34,3 @@ void *CTLineGetTypographicBounds(void) {
printf("STUB %s\n", __PRETTY_FUNCTION__); printf("STUB %s\n", __PRETTY_FUNCTION__);
return NULL; return NULL;
} }
void *CTParagraphStyleCreate(void) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return NULL;
}