Add shadow method to NSGraphicsContext and add set method to NSShadow

This commit is contained in:
Gregory John Casamento 2023-12-28 06:47:25 -05:00
parent 345b1b4065
commit 9fab419042
3 changed files with 16 additions and 1 deletions

View file

@ -320,6 +320,7 @@ NSGraphicsContext *GSCurrentContext(void)
DESTROY(focus_stack);
DESTROY(context_data);
DESTROY(context_info);
DESTROY(_shadow);
[super dealloc];
}
@ -515,6 +516,12 @@ NSGraphicsContext *GSCurrentContext(void)
{
}
/* Private method for handling shadows */
- (void) setShadow: (NSShadow *)shadow
{
ASSIGN(_shadow, shadow);
}
@end
@implementation NSGraphicsContext (Private)