mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Rename geometry structs (NSRect, NSPoint, NSSize) for toll-free bridging with CoreGraphics
This commit is contained in:
parent
9eedbc2b49
commit
71beb1ae5e
1 changed files with 6 additions and 6 deletions
|
@ -56,8 +56,8 @@ extern "C" {
|
|||
CGFloat y;
|
||||
}</example>
|
||||
<p>Represents a 2-d cartesian position.</p> */
|
||||
typedef struct _NSPoint NSPoint;
|
||||
struct _NSPoint
|
||||
typedef struct CGPoint NSPoint;
|
||||
struct CGPoint
|
||||
{
|
||||
CGFloat x;
|
||||
CGFloat y;
|
||||
|
@ -76,8 +76,8 @@ typedef NSPoint *NSPointPointer;
|
|||
CGFloat height;
|
||||
}</example>
|
||||
<p>Floating point rectangle size.</p> */
|
||||
typedef struct _NSSize NSSize;
|
||||
struct _NSSize
|
||||
typedef struct CGSize NSSize;
|
||||
struct CGSize
|
||||
{
|
||||
CGFloat width;
|
||||
CGFloat height;
|
||||
|
@ -97,8 +97,8 @@ typedef NSSize *NSSizePointer;
|
|||
}</example>
|
||||
|
||||
<p>Rectangle.</p> */
|
||||
typedef struct _NSRect NSRect;
|
||||
struct _NSRect
|
||||
typedef struct CGRect NSRect;
|
||||
struct CGRect
|
||||
{
|
||||
NSPoint origin;
|
||||
NSSize size;
|
||||
|
|
Loading…
Reference in a new issue