[AppKit/Foundation] Use Foundation's NSUnderlineStyle everywhere except for macOS until XAMCORE_4_0. (#12221)

This commit is contained in:
Rolf Bjarne Kvinge 2021-07-26 15:29:07 +02:00 коммит произвёл GitHub
Родитель 402be91510
Коммит e67f4de7cb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -1283,6 +1283,7 @@ namespace AppKit {
AsKeyedArchive = 4
}
#if !XAMCORE_4_0 && MONOMAC // Use the one in Foundation instead, only keep this in macOS until XAMCORE_4_0.
[Native]
public enum NSUnderlineStyle : long {
None = 0x00,
@ -1296,6 +1297,7 @@ namespace AppKit {
PatternDashDotDot = 0x0400,
ByWord = 0x8000
}
#endif
// Convenience enum, untyped in ObjC
public enum NSUnderlinePattern : int {

Просмотреть файл

@ -837,9 +837,9 @@ namespace Foundation {
LongestEffectiveRangeNotRequired = 1 << 20
}
#if !MONOMAC
// MonoMac AppKit redefines this
// NSInteger -> NSAttributedString.h
#if XAMCORE_4_0 || !MONOMAC
// macOS has defined this in AppKit as well, but starting with XAMCORE_4_0 we're going
// to use this one only.
[Native]
public enum NSUnderlineStyle : long {
None = 0x00,