fixed enums

This commit is contained in:
Matvii Jarosh 2024-11-19 18:34:27 +02:00
parent 19d6aefa47
commit 97ba75c5c8
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2024-11-19 Matvii Jarosh <matviijarosh@gmail.com>
* Header/Foundation/NSGeometry.h: fixed NSRectEdge and
NSAlignmentOptions enums.
2024-11-18 Matvii Jarosh <matviijarosh@gmail.com>
* Source/NSGeometry.m: added NSIntegralRectWithOptions function.

View file

@ -97,13 +97,13 @@ typedef NSRect *NSRectArray;
typedef NSRect *NSRectPointer;
#endif
typedef enum
typedef NS_ENUM(NSUInteger, NSRectEdge)
{
NSMinXEdge = 0,
NSMinYEdge = 1,
NSMaxXEdge = 2,
NSMaxYEdge = 3
} NSRectEdge;
};
/** Sides of a rectangle.
<example>
{
@ -144,7 +144,7 @@ typedef enum
</example>
<p>NSAlignmentOptions</p>*/
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
typedef enum
typedef NS_ENUM(unsigned long long, NSAlignmentOptions)
{
NSAlignMinXInward = 1ULL << 0,
NSAlignMinYInward = 1ULL << 1,
@ -177,7 +177,7 @@ typedef enum
| NSAlignMaxXNearest
| NSAlignMinYNearest
| NSAlignMaxYNearest
} NSAlignmentOptions;
};
#endif
/**