[AppKit] Remove wrong XAMCORE_4_0 code for a few enums that are correctly marked as native enums. (#13430)
* [AppKit] NSTextMovement is defined to be an NSInteger, so keep this as a native enum in .NET. * [AppKit] NSWindowStyle is defined to be an NSUInteger, so keep this as a native enum in .NET. * [AppKit] NSWindowNumberListOptions is defined to be an NSUInteger, so keep this as a native enum in .NET.
This commit is contained in:
Родитель
dbdebb4522
Коммит
2b7b0bd2d9
|
@ -867,12 +867,8 @@ namespace AppKit {
|
||||||
#region NSWindow
|
#region NSWindow
|
||||||
[NoMacCatalyst]
|
[NoMacCatalyst]
|
||||||
[Flags]
|
[Flags]
|
||||||
#if !XAMCORE_4_0
|
|
||||||
[Native]
|
[Native]
|
||||||
public enum NSWindowStyle : ulong {
|
public enum NSWindowStyle : ulong {
|
||||||
#else
|
|
||||||
public enum NSWindowStyle : int {
|
|
||||||
#endif
|
|
||||||
Borderless = 0 << 0,
|
Borderless = 0 << 0,
|
||||||
Titled = 1 << 0,
|
Titled = 1 << 0,
|
||||||
Closable = 1 << 1,
|
Closable = 1 << 1,
|
||||||
|
@ -924,12 +920,8 @@ namespace AppKit {
|
||||||
|
|
||||||
[NoMacCatalyst]
|
[NoMacCatalyst]
|
||||||
[Flags]
|
[Flags]
|
||||||
#if !XAMCORE_4_0
|
|
||||||
[Native]
|
[Native]
|
||||||
public enum NSWindowNumberListOptions : ulong {
|
public enum NSWindowNumberListOptions : ulong {
|
||||||
#else
|
|
||||||
public enum NSWindowNumberListOptions : int {
|
|
||||||
#endif
|
|
||||||
AllApplication = 1 << 0,
|
AllApplication = 1 << 0,
|
||||||
AllSpaces = 1 << 4
|
AllSpaces = 1 << 4
|
||||||
}
|
}
|
||||||
|
@ -1336,12 +1328,8 @@ namespace AppKit {
|
||||||
#endif // !NET && MONOMAC
|
#endif // !NET && MONOMAC
|
||||||
|
|
||||||
[NoMacCatalyst]
|
[NoMacCatalyst]
|
||||||
#if !XAMCORE_4_0
|
|
||||||
[Native]
|
[Native]
|
||||||
public enum NSTextMovement : long {
|
public enum NSTextMovement : long {
|
||||||
#else
|
|
||||||
public enum NSTextMovement : int {
|
|
||||||
#endif
|
|
||||||
Other = 0,
|
Other = 0,
|
||||||
Return = 0x10,
|
Return = 0x10,
|
||||||
Tab = 0x11,
|
Tab = 0x11,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче