mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 01:23:26 +00:00
Fix int-conversion error
This commit is contained in:
parent
b22b56f497
commit
e00b4468c4
@ -1162,6 +1162,12 @@ static NSString *NSStringFromCellType(NSCellType type) {
|
||||
NSStringFromCellType(_cellType), _font,
|
||||
_objectValue];
|
||||
}
|
||||
|
||||
- (BOOL) usesSignleLineMode {
|
||||
NSLog(@"Stub called: usesSignleLineMode in %@", [self class]);
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
|
||||
|
@ -290,6 +290,8 @@ enum {
|
||||
- (void) setSendsActionOnEndEditing: (BOOL) flag;
|
||||
- (BOOL) sendsActionOnEndEditing;
|
||||
|
||||
- (BOOL) usesSignleLineMode;
|
||||
|
||||
@end
|
||||
|
||||
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
|
||||
|
@ -196,4 +196,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
_relationshipKeyPathsForPrefetching = value;
|
||||
}
|
||||
|
||||
- (NSUInteger) _countInContext: (NSManagedObjectContext *) _context {
|
||||
NSLog(@"Stub called: _countInContext in %@", [self class]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -88,4 +88,6 @@ typedef NSUInteger NSFetchRequestResultType;
|
||||
|
||||
- (void) setRelationshipKeyPathsForPrefetching: (NSArray *) value;
|
||||
|
||||
- (NSUInteger) _countInContext: (NSManagedObjectContext *) _context;
|
||||
|
||||
@end
|
||||
|
@ -29,6 +29,16 @@ CGContextRef CGBitmapContextCreate(void *bytes, size_t width, size_t height,
|
||||
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) {
|
||||
return O2BitmapContextGetData(self);
|
||||
}
|
||||
|
11
CoreGraphics/CGDisplayConfiguration.m
Normal file
11
CoreGraphics/CGDisplayConfiguration.m
Normal 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;
|
||||
}
|
6
CoreGraphics/CGPSConverter.m
Normal file
6
CoreGraphics/CGPSConverter.m
Normal 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;
|
||||
}
|
11
CoreGraphics/CGRemoteOperation.m
Normal file
11
CoreGraphics/CGRemoteOperation.m
Normal 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;
|
||||
}
|
@ -24,6 +24,7 @@ set_property(SOURCE
|
||||
CGDataConsumer.m
|
||||
CGDataProvider.m
|
||||
CGDirectDisplay.m
|
||||
CGDisplayConfiguration.m
|
||||
CGFont.m
|
||||
CGFunction.m
|
||||
CGGeometry.m
|
||||
@ -39,6 +40,8 @@ set_property(SOURCE
|
||||
CGPDFContext.m
|
||||
CGPDFDocument.m
|
||||
CGPDFPage.m
|
||||
CGPSConverter.m
|
||||
CGRemoteOperation.m
|
||||
CGShading.m
|
||||
CGWindow.m
|
||||
CGSubWindow.m
|
||||
|
@ -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);
|
||||
|
||||
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 size_t CGBitmapContextGetWidth(CGContextRef self);
|
||||
|
@ -1,4 +1,5 @@
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
#import <CoreGraphics/CGGeometry.h>
|
||||
|
||||
typedef CF_OPTIONS(uint32_t, CGDisplayChangeSummaryFlags) {
|
||||
kCGDisplayBeginConfigurationFlag = (1 << 0),
|
||||
@ -13,3 +14,8 @@ typedef CF_OPTIONS(uint32_t, CGDisplayChangeSummaryFlags) {
|
||||
kCGDisplayUnMirrorFlag = (1 << 11),
|
||||
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);
|
||||
|
@ -20,3 +20,5 @@ typedef struct CGPSConverterCallbacks {
|
||||
CGPSConverterMessageCallback noteMessage;
|
||||
CGPSConverterReleaseInfoCallback releaseInfo;
|
||||
} CGPSConverterCallbacks;
|
||||
|
||||
extern CGPSConverterRef CGPSConverterCreate(void *info, const CGPSConverterCallbacks *callbacks, CFDictionaryRef options);
|
||||
|
@ -19,6 +19,9 @@
|
||||
|
||||
#ifndef CGREMOTEOPERATION_H
|
||||
#define CGREMOTEOPERATION_H
|
||||
|
||||
#import <CoreGraphics/CGGeometry.h>
|
||||
|
||||
#include <CoreGraphics/CGError.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -51,8 +54,12 @@ typedef struct CGScreenUpdateMoveDelta {
|
||||
int32_t dX, dY;
|
||||
} CGScreenUpdateMoveDelta;
|
||||
|
||||
typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo);
|
||||
|
||||
#define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents)
|
||||
|
||||
// TODO: All those deprecated functions
|
||||
extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
|
||||
extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
|
||||
|
||||
#endif
|
||||
|
@ -16,6 +16,7 @@ include_directories(
|
||||
|
||||
set(CoreText_sources
|
||||
CTFont.m
|
||||
CTParagraphStyle.m
|
||||
KTFont.m
|
||||
KTFont_FT.m
|
||||
constants.c
|
||||
|
@ -104,3 +104,8 @@ CGPathRef CTFontCreatePathForGlyph(CTFontRef self, CGGlyph glyph,
|
||||
{
|
||||
return (CGPathRef) [self createPathForGlyph: glyph transform: xform];
|
||||
}
|
||||
|
||||
CFArrayRef CTFontCopyAvailableTables(CTFontRef font, CTFontTableOptions options) {
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
return nil;
|
||||
}
|
||||
|
11
CoreText/CTParagraphStyle.m
Normal file
11
CoreText/CTParagraphStyle.m
Normal 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;
|
||||
}
|
@ -20,6 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <CoreGraphics/CGFont.h>
|
||||
#import <CoreGraphics/CGPath.h>
|
||||
#import <CoreText/CoreTextExport.h>
|
||||
#import <CoreText/CTParagraphStyle.h>
|
||||
|
||||
typedef struct CF_BRIDGED_TYPE(id) KTFont *CTFontRef;
|
||||
|
||||
@ -88,4 +89,6 @@ CORETEXT_EXPORT CGPathRef CTFontCreatePathForGlyph(CTFontRef self,
|
||||
CGGlyph glyph,
|
||||
CGAffineTransform *xform);
|
||||
|
||||
CORETEXT_EXPORT CFArrayRef CTFontCopyAvailableTables(CTFontRef font, CTFontTableOptions options);
|
||||
|
||||
CF_IMPLICIT_BRIDGING_DISABLED
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <CoreFoundation/CFBase.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef const struct __CTParagraphStyle* CTParagraphStyleRef;
|
||||
|
||||
typedef CF_ENUM(uint32_t, CTParagraphStyleSpecifier) {
|
||||
@ -59,3 +61,6 @@ typedef struct CTParagraphStyleSetting {
|
||||
size_t valueSize;
|
||||
const void* value;
|
||||
} CTParagraphStyleSetting;
|
||||
|
||||
extern CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount);
|
||||
extern bool CTParagraphStyleGetValueForSpecifier(CTParagraphStyleRef paragraphStyle, CTParagraphStyleSpecifier spec, size_t valueBufferSize, void *valueBuffer);
|
||||
|
@ -34,8 +34,3 @@ void *CTLineGetTypographicBounds(void) {
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *CTParagraphStyleCreate(void) {
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user