Play-/Source/ui_macosx/OutputWindowController.mm
2015-05-06 01:27:59 -04:00

39 lines
875 B
Plaintext

#import "OutputWindowController.h"
@interface OutputWindowController ()
@end
@implementation OutputWindowController
@synthesize openGlView = _openGlView;
-(void)setDelegate: (id)delegate
{
_delegate = delegate;
}
-(NSApplicationPresentationOptions)window: (NSWindow*)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
{
return (NSApplicationPresentationFullScreen | NSApplicationPresentationHideDock | NSApplicationPresentationAutoHideMenuBar);
}
-(NSSize)window: (NSWindow*)window willUseFullScreenContentSize: (NSSize)proposedSize
{
return proposedSize;
}
-(void)windowDidResize: (NSNotification*)notification
{
[_delegate outputWindowDidResize: [self contentSize]];
}
-(NSSize)contentSize
{
NSView* contentView = self.window.contentView;
NSRect contentFrame = contentView.frame;
return contentFrame.size;
}
@end