openclonk/src/platform/C4WindowController.h

45 lines
1.1 KiB
C
Raw Permalink Normal View History

2010-12-27 03:49:02 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
2016-04-03 18:18:29 +00:00
* Copyright (c) 2010-2016, The OpenClonk Team and contributors
2010-12-27 03:49:02 +00:00
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2010-12-27 03:49:02 +00:00
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
2010-12-27 03:49:02 +00:00
*/
#import <Cocoa/Cocoa.h>
2011-08-27 21:12:01 +00:00
class C4Window;
2010-12-27 03:49:02 +00:00
class C4ViewportWindow;
class C4Viewport;
@class C4OpenGLView;
2010-12-27 03:49:02 +00:00
@class NSTextView;
@class C4EditorWindowController;
2010-12-27 03:49:02 +00:00
2012-03-22 23:03:05 +00:00
bool lionAndBeyond();
@interface C4WindowController : NSWindowController<NSWindowDelegate> {
2010-12-27 03:49:02 +00:00
NSWindow* fullscreenWindow;
NSSize preferredContentSize;
2010-12-27 03:49:02 +00:00
}
- (C4Viewport*) viewport;
- (void) setFullscreen:(BOOL)fullscreen;
- (BOOL) isFullScreen;
- (BOOL) isFullScreenConsideringLionFullScreen;
- (void) setContentSize:(NSSize)size;
2010-12-27 03:49:02 +00:00
- (IBAction) scroll:(id)sender;
2011-08-27 21:12:01 +00:00
@property (readwrite) C4Window* stdWindow;
@property (weak) C4OpenGLView* openGLView;
@property (weak) NSScrollView* scrollView;
2010-12-27 03:49:02 +00:00
@property (readonly) BOOL isLiveResizing;
@end