view foosdk/sdk/foobar2000/helpers-mac/NSView+embed.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line source

#import <Cocoa/Cocoa.h>

#if 0
@interface NSView (embed)
- (void) embedInView: (NSView*) superview; // uses autoresizingMask
- (void) embedInViewV2: (NSView*) superview; // adds autolayout constraints
@end
#endif

#ifdef __cplusplus
extern "C" {
#endif

void NSViewEmbed( NSView * superview, NSView * childview );
void NSViewEmbedConstraints( NSView * superview, NSView * childview );

#ifdef __cplusplus
} // extern "C"
#endif