mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fixed enums
This commit is contained in:
parent
19d6aefa47
commit
97ba75c5c8
2 changed files with 9 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue