mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
Merge pull request #30 from darlinghq/fedora_38_fix
Fix Building For Fedora 38
This commit is contained in:
commit
a23a4bab20
@ -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
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <CoreText/CTFontDescriptor.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute)
|
||||
{
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user