Add ivar for shadow

This commit is contained in:
Gregory John Casamento 2023-12-24 13:59:12 -05:00
parent 33d66e0ddc
commit 9cb00ba871
2 changed files with 6 additions and 3 deletions

View file

@ -54,6 +54,7 @@
@class NSScrollView;
@class NSView;
@class NSWindow;
@class NSShadow;
typedef NSInteger NSTrackingRectTag;
typedef NSInteger NSToolTipTag;
@ -193,6 +194,7 @@ PACKAGE_SCOPE
NSUInteger _autoresizingMask;
NSFocusRingType _focusRingType;
NSRect _autoresizingFrameError;
NSShadow *_shadow;
}
/*
@ -740,8 +742,6 @@ PACKAGE_SCOPE
* Core Animation support methods. More methods will be added here as more are implemented.
*/
@class NSShadow;
@interface NSView (CoreAnimationSupport)
- (NSShadow *) shadow;

View file

@ -772,6 +772,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
}
TEST_RELEASE(_cursor_rects);
TEST_RELEASE(_tracking_rects);
TEST_RELEASE(_shadow);
[self unregisterDraggedTypes];
[self releaseGState];
@ -5490,11 +5492,12 @@ cmpFrame(id view1, id view2, void *context)
- (NSShadow *) shadow
{
return nil;
return _shadow;
}
- (void) setShadow: (NSShadow *)shadow
{
ASSIGN(_shadow, shadow);
}
@end