Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4629,6 +4629,16 @@ partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardRea
[Static, Export ("colorWithRed:green:blue:alpha:")]
NSColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha);

[Mac (26, 0)]
[Static]
[Export ("colorWithRed:green:blue:alpha:exposure:")]
NSColor FromRgbaExposure (nfloat red, nfloat green, nfloat blue, nfloat alpha, nfloat exposure);

[Mac (26, 0)]
[Static]
[Export ("colorWithRed:green:blue:alpha:linearExposure:")]
NSColor FromRgbaLinearExposure (nfloat red, nfloat green, nfloat blue, nfloat alpha, nfloat linearExposure);

[Static, Export ("colorWithHue:saturation:brightness:alpha:")]
NSColor FromHsba (nfloat hue, nfloat saturation, nfloat brightness, nfloat alpha);

Expand Down Expand Up @@ -4878,6 +4888,18 @@ partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardRea
[Export ("colorWithAlphaComponent:")]
NSColor ColorWithAlphaComponent (nfloat alpha);

[Mac (26, 0)]
[Export ("colorByApplyingContentHeadroom:")]
NSColor GetColorByApplyingContentHeadroom (nfloat contentHeadroom);

[Mac (26, 0)]
[Export ("linearExposure")]
nfloat LinearExposure { get; }

[Mac (26, 0)]
[Export ("standardDynamicRangeColor", ArgumentSemantic.Copy)]
NSColor StandardDynamicRangeColor { get; }

[DebuggerBrowsable (DebuggerBrowsableState.Never)]
[Export ("catalogNameComponent")]
string CatalogNameComponent { get; }
Expand Down Expand Up @@ -5276,6 +5298,10 @@ partial interface NSColorPanel {
[Export ("color", ArgumentSemantic.Copy)]
NSColor Color { get; set; }

[Mac (26, 0)]
[Export ("maximumLinearExposure")]
nfloat MaximumLinearExposure { get; set; }

}

[NoMacCatalyst]
Expand Down Expand Up @@ -5516,6 +5542,10 @@ interface NSColorWell {
[Static]
[Export ("colorWellWithStyle:")]
NSColorWell Create (NSColorWellStyle style);

[Mac (26, 0)]
[Export ("maximumLinearExposure")]
nfloat MaximumLinearExposure { get; set; }
}

[NoMacCatalyst]
Expand Down Expand Up @@ -13016,6 +13046,28 @@ interface NSLayoutGuide : NSCoding, NSUserInterfaceItemIdentification {
NSLayoutConstraint [] GetConstraintsAffectingLayout (NSLayoutConstraintOrientation orientation);
}

[Mac (26, 0), NoMacCatalyst]
[Native]
public enum NSViewLayoutRegionAdaptivityAxis : long {
None,
Horizontal,
Vertical,
}

[Mac (26, 0), NoMacCatalyst]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface NSViewLayoutRegion {

[Static]
[Export ("safeAreaLayoutRegionWithCornerAdaptation:")]
NSViewLayoutRegion CreateSafeAreaLayoutRegion (NSViewLayoutRegionAdaptivityAxis cornerAdaptivityAxis);

[Static]
[Export ("marginsLayoutRegionWithCornerAdaptation:")]
NSViewLayoutRegion CreateMarginsLayoutRegion (NSViewLayoutRegionAdaptivityAxis cornerAdaptivityAxis);
}

[NoMacCatalyst]
[BaseType (typeof (NSGestureRecognizer))]
interface NSMagnificationGestureRecognizer {
Expand Down Expand Up @@ -19807,6 +19859,18 @@ partial interface NSView : NSDraggingDestination, NSAnimatablePropertyContainer,
[Mac (26, 0)]
[Export ("prefersCompactControlSizeMetrics")]
bool PrefersCompactControlSizeMetrics { get; set; }

[Mac (26, 0), NoMacCatalyst]
[Export ("edgeInsetsForLayoutRegion:")]
NSEdgeInsets GetEdgeInsets (NSViewLayoutRegion layoutRegion);

[Mac (26, 0), NoMacCatalyst]
[Export ("layoutGuideForLayoutRegion:")]
NSLayoutGuide GetLayoutGuide (NSViewLayoutRegion layoutRegion);

[Mac (26, 0), NoMacCatalyst]
[Export ("rectForLayoutRegion:")]
CGRect GetRect (NSViewLayoutRegion layoutRegion);
}

[NoMacCatalyst]
Expand Down Expand Up @@ -34918,6 +34982,13 @@ interface NSGlassEffectContainerView {
nfloat Spacing { get; set; }
}

[NoMacCatalyst, Mac (26, 0)]
[Native]
public enum NSGlassEffectViewStyle : long {
Regular,
Clear,
}

[NoMacCatalyst, Mac (26, 0)]
[BaseType (typeof (NSView))]
interface NSGlassEffectView {
Expand All @@ -34933,6 +35004,9 @@ interface NSGlassEffectView {

[NullAllowed, Export ("tintColor", ArgumentSemantic.Copy)]
Color TintColor { get; set; }

[Export ("style")]
NSGlassEffectViewStyle Style { get; set; }
}

[NoMacCatalyst, Mac (26, 0)]
Expand Down
19 changes: 0 additions & 19 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo

This file was deleted.

Loading