Merge pull request #30 from darlinghq/fedora_38_fix

Fix Building For Fedora 38
This commit is contained in:
CuriousTommy 2023-06-28 10:29:56 -07:00 committed by GitHub
commit a23a4bab20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 0 deletions

View File

@ -1 +1,11 @@
#ifndef COREGRAPHICS_CGPDFDICTIONARY_H
#define COREGRAPHICS_CGPDFDICTIONARY_H
#include <CoreGraphics/CGPDFObject.h>
typedef struct CGPDFDictionary *CGPDFDictionaryRef;
typedef void (*CGPDFDictionaryApplierFunction)(const char *key, CGPDFObjectRef value, void *info);
void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CGPDFDictionaryApplierFunction function, void *info);
#endif // COREGRAPHICS_CGPDFDICTIONARY_H

View File

@ -55,6 +55,7 @@ typedef struct CGScreenUpdateMoveDelta {
} CGScreenUpdateMoveDelta;
typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo);
typedef void (*CGScreenRefreshCallback)(uint32_t count, const CGRect *rects, void *userInfo);
#define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents)
@ -62,4 +63,10 @@ typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t
extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo);
CGError CGRegisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo);
void CGUnregisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo);
CGError CGWaitForScreenRefreshRects(CGRect * _Nullable *rects, uint32_t *count);
void CGReleaseScreenRefreshRects(CGRect *rects);
CGError CGWaitForScreenUpdateRects(CGScreenUpdateOperation requestedOperations, CGScreenUpdateOperation *currentOperation, CGRect * _Nullable *rects, size_t *rectCount, CGScreenUpdateMoveDelta *delta);
#endif

View File

@ -32,6 +32,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import <CoreGraphics/CGShading.h>
#import <CoreGraphics/CGWindowLevel.h>
#import <CoreGraphics/CGWindow.h>
#import <CoreGraphics/CGRemoteOperation.h>
#include <CoreGraphics/CGEvent.h>
#include <CoreGraphics/CGPDFContext.h>

View File

@ -1,5 +1,7 @@
#import <CoreText/CTFontDescriptor.h>
#include <stdio.h>
CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute)
{
printf("STUB %s\n", __PRETTY_FUNCTION__);

View File

@ -1,5 +1,7 @@
#import <CoreText/CTParagraphStyle.h>
#include <stdio.h>
CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return nil;