mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
Define CoreGraphics types
This commit is contained in:
parent
228ec38015
commit
6d18233657
@ -10,6 +10,36 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
#import <CoreFoundation/CFBase.h>
|
#import <CoreFoundation/CFBase.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
struct CGPoint {
|
||||||
|
CGFloat x;
|
||||||
|
CGFloat y;
|
||||||
|
};
|
||||||
|
typedef struct CGPoint CGPoint;
|
||||||
|
|
||||||
|
struct CGSize {
|
||||||
|
CGFloat width;
|
||||||
|
CGFloat height;
|
||||||
|
};
|
||||||
|
typedef struct CGSize CGSize;
|
||||||
|
|
||||||
|
#define CGVECTOR_DEFINED 1
|
||||||
|
|
||||||
|
struct CGVector {
|
||||||
|
CGFloat dx;
|
||||||
|
CGFloat dy;
|
||||||
|
};
|
||||||
|
typedef struct CGVector CGVector;
|
||||||
|
|
||||||
|
struct CGRect {
|
||||||
|
CGPoint origin;
|
||||||
|
CGSize size;
|
||||||
|
};
|
||||||
|
typedef struct CGRect CGRect;
|
||||||
|
|
||||||
|
typedef CF_ENUM(uint32_t, CGRectEdge) {
|
||||||
|
CGRectMinXEdge, CGRectMinYEdge, CGRectMaxXEdge, CGRectMaxYEdge
|
||||||
|
};
|
||||||
|
|
||||||
COREGRAPHICS_EXPORT const CGRect CGRectZero;
|
COREGRAPHICS_EXPORT const CGRect CGRectZero;
|
||||||
COREGRAPHICS_EXPORT const CGRect CGRectNull;
|
COREGRAPHICS_EXPORT const CGRect CGRectNull;
|
||||||
COREGRAPHICS_EXPORT const CGPoint CGPointZero;
|
COREGRAPHICS_EXPORT const CGPoint CGPointZero;
|
||||||
|
Loading…
Reference in New Issue
Block a user