Skip to content
68 changes: 39 additions & 29 deletions src/AppKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1879,34 +1879,37 @@ public enum NSSaveOperationType : ulong {

#region NSBezelPath

/// <summary>Specifies the shape of the endpoints of an open path.</summary>
[NoMacCatalyst]
[Native]
public enum NSLineCapStyle : ulong {
/// <summary>To be added.</summary>
/// <summary>Ends the path at the endpoint.</summary>
Butt,
/// <summary>To be added.</summary>
/// <summary>Uses a semicircular cap centered on the endpoint.</summary>
Round,
/// <summary>To be added.</summary>
/// <summary>Uses a square cap that extends beyond the endpoint.</summary>
Square,
}

/// <summary>Specifies the shape used to join connected path segments.</summary>
[NoMacCatalyst]
[Native]
public enum NSLineJoinStyle : ulong {
/// <summary>To be added.</summary>
/// <summary>Joins segments by extending their outer edges until they meet.</summary>
Miter,
/// <summary>To be added.</summary>
/// <summary>Joins segments with a rounded corner.</summary>
Round,
/// <summary>To be added.</summary>
/// <summary>Joins segments with a beveled corner.</summary>
Bevel,
}

/// <summary>Specifies the rule used to determine which areas of a path are filled.</summary>
[NoMacCatalyst]
[Native]
public enum NSWindingRule : ulong {
/// <summary>To be added.</summary>
/// <summary>Fills areas using the nonzero winding rule.</summary>
NonZero,
/// <summary>To be added.</summary>
/// <summary>Fills areas using the even-odd winding rule.</summary>
EvenOdd,
}

Expand All @@ -1926,12 +1929,13 @@ public enum NSBezierPathElement : ulong {
#endregion

#region NSRulerView
/// <summary>Specifies the orientation of a ruler view.</summary>
[NoMacCatalyst]
[Native]
public enum NSRulerOrientation : ulong {
/// <summary>To be added.</summary>
/// <summary>A horizontal ruler.</summary>
Horizontal,
/// <summary>To be added.</summary>
/// <summary>A vertical ruler.</summary>
Vertical,
}
#endregion
Expand Down Expand Up @@ -2133,23 +2137,25 @@ public enum NSUnderlinePattern : int {
DashDotDot = 0x0400,
}

/// <summary>Specifies the direction associated with a selection at a line boundary.</summary>
[NoMacCatalyst]
[Native]
public enum NSSelectionAffinity : ulong {
/// <summary>To be added.</summary>
/// <summary>The selection is associated with the preceding line.</summary>
Upstream,
/// <summary>To be added.</summary>
/// <summary>The selection is associated with the following line.</summary>
Downstream,
}

/// <summary>Specifies the unit used when modifying a text selection.</summary>
[NoMacCatalyst]
[Native]
public enum NSSelectionGranularity : ulong {
/// <summary>To be added.</summary>
/// <summary>Selects text by character.</summary>
Character,
/// <summary>To be added.</summary>
/// <summary>Selects text by word.</summary>
Word,
/// <summary>To be added.</summary>
/// <summary>Selects text by paragraph.</summary>
Paragraph,
}

Expand Down Expand Up @@ -2181,31 +2187,33 @@ public enum NSTrackingAreaOptions : ulong {
}
#endregion

/// <summary>Specifies the direction in which text layout sweeps across a line.</summary>
[NoMacCatalyst]
[Native]
public enum NSLineSweepDirection : ulong {
/// <summary>To be added.</summary>
/// <summary>Sweeps toward the left.</summary>
NSLineSweepLeft,
/// <summary>To be added.</summary>
/// <summary>Sweeps toward the right.</summary>
NSLineSweepRight,
/// <summary>To be added.</summary>
/// <summary>Sweeps downward.</summary>
NSLineSweepDown,
/// <summary>To be added.</summary>
/// <summary>Sweeps upward.</summary>
NSLineSweepUp,
}

/// <summary>Specifies the direction in which text layout moves between lines.</summary>
[NoMacCatalyst]
[Native]
public enum NSLineMovementDirection : ulong {
/// <summary>To be added.</summary>
/// <summary>Does not move between lines.</summary>
None,
/// <summary>To be added.</summary>
/// <summary>Moves to the left.</summary>
Left,
/// <summary>To be added.</summary>
/// <summary>Moves to the right.</summary>
Right,
/// <summary>To be added.</summary>
/// <summary>Moves downward.</summary>
Down,
/// <summary>To be added.</summary>
/// <summary>Moves upward.</summary>
Up,
}

Expand Down Expand Up @@ -2289,23 +2297,25 @@ public enum NSBitmapFormat : ulong {
BigEndian32Bit = 1 << 11,
}

/// <summary>Specifies the orientation of printed pages.</summary>
[NoMacCatalyst]
[Native]
public enum NSPrintingOrientation : ulong {
/// <summary>To be added.</summary>
/// <summary>Prints pages in portrait orientation.</summary>
Portrait,
/// <summary>To be added.</summary>
/// <summary>Prints pages in landscape orientation.</summary>
Landscape,
}

/// <summary>Specifies how printed content is paginated along one axis.</summary>
[NoMacCatalyst]
[Native]
public enum NSPrintingPaginationMode : ulong {
/// <summary>To be added.</summary>
/// <summary>Divides the content into equal-sized page rectangles.</summary>
Comment thread
rolfbjarne marked this conversation as resolved.
Resolved
Auto,
/// <summary>To be added.</summary>
/// <summary>Scales the content to produce one row or column of pages.</summary>
Fit,
/// <summary>To be added.</summary>
/// <summary>Clips the content to produce one row or column of pages.</summary>
Clip,
}

Expand Down
10 changes: 0 additions & 10 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22527,10 +22527,6 @@ T:AppKit.NSLevelIndicatorPlaceholderVisibility
T:AppKit.NSLevelIndicatorStyle
T:AppKit.NSLineBreakMode
T:AppKit.NSLineBreakStrategy
T:AppKit.NSLineCapStyle
T:AppKit.NSLineJoinStyle
T:AppKit.NSLineMovementDirection
T:AppKit.NSLineSweepDirection
T:AppKit.NSMatrixMode
T:AppKit.NSMenuItemBadgeType
T:AppKit.NSMenuPresentationStyle
Expand Down Expand Up @@ -22580,9 +22576,7 @@ T:AppKit.NSPopoverBehavior
T:AppKit.NSPopUpArrowPosition
T:AppKit.NSPressureBehavior
T:AppKit.NSPrinterTableStatus
T:AppKit.NSPrintingOrientation
T:AppKit.NSPrintingPageOrder
T:AppKit.NSPrintingPaginationMode
T:AppKit.NSPrintPanelOptions
T:AppKit.NSPrintPanelResult
T:AppKit.NSPrintRenderingQuality
Expand All @@ -22600,7 +22594,6 @@ T:AppKit.NSRulerEditorChildCriterion
T:AppKit.NSRulerEditorDisplayValue
T:AppKit.NSRulerEditorPredicateParts
T:AppKit.NSRulerMarkerClientViewDelegation
T:AppKit.NSRulerOrientation
T:AppKit.NSRulerViewUnits
T:AppKit.NSRunResponse
T:AppKit.NSSaveOperationType
Expand All @@ -22618,9 +22611,7 @@ T:AppKit.NSSegmentBackgroundStyle_NSSegmentedCell
T:AppKit.NSSegmentDistribution
T:AppKit.NSSegmentStyle
T:AppKit.NSSegmentSwitchTracking
T:AppKit.NSSelectionAffinity
T:AppKit.NSSelectionDirection
T:AppKit.NSSelectionGranularity
T:AppKit.NSSharingCollaborationMode
T:AppKit.NSSharingContentScope
T:AppKit.NSSharingServiceAnchoringViewForSharingService
Expand Down Expand Up @@ -22800,7 +22791,6 @@ T:AppKit.NSViewResizingMask
T:AppKit.NSVisualEffectBlendingMode
T:AppKit.NSVisualEffectMaterial
T:AppKit.NSVisualEffectState
T:AppKit.NSWindingRule
T:AppKit.NSWindowAnimationBehavior
T:AppKit.NSWindowApplicationPresentationOptions
T:AppKit.NSWindowBackingLocation
Expand Down
Loading