2013-09-03 19:18:28 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
2017-06-24 14:50:52 +00:00
|
|
|
* mpv is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2013-09-03 19:18:28 +00:00
|
|
|
*
|
|
|
|
* mpv is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2017-06-24 14:50:52 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2013-09-03 19:18:28 +00:00
|
|
|
*
|
2017-06-24 14:50:52 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
2013-09-03 19:18:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "video/out/vo.h"
|
|
|
|
|
2015-03-08 14:19:17 +00:00
|
|
|
@interface MpvCocoaAdapter : NSObject<NSWindowDelegate>
|
2013-09-03 19:18:28 +00:00
|
|
|
- (void)setNeedsResize;
|
|
|
|
- (void)signalMouseMovement:(NSPoint)point;
|
|
|
|
- (void)putKey:(int)mpkey withModifiers:(int)modifiers;
|
2017-09-02 14:00:52 +00:00
|
|
|
- (void)putWheel:(int)mpkey delta:(float)delta;
|
2013-11-22 07:43:02 +00:00
|
|
|
- (void)putCommand:(char*)cmd;
|
2014-01-04 16:17:33 +00:00
|
|
|
- (void)handleFilesArray:(NSArray *)files;
|
2016-12-04 21:52:14 +00:00
|
|
|
- (void)didChangeWindowedScreenProfile:(NSNotification *)notification;
|
2014-10-18 16:30:22 +00:00
|
|
|
- (void)performAsyncResize:(NSSize)size;
|
2017-02-23 00:37:23 +00:00
|
|
|
- (void)windowDidChangePhysicalScreen;
|
2017-07-27 19:28:33 +00:00
|
|
|
- (void)windowDidEnterFullScreen;
|
|
|
|
- (void)windowDidExitFullScreen;
|
2013-09-03 19:18:28 +00:00
|
|
|
|
|
|
|
- (BOOL)isInFullScreenMode;
|
2017-07-27 19:28:33 +00:00
|
|
|
- (BOOL)wantsNativeFullscreen;
|
2014-10-17 17:15:17 +00:00
|
|
|
- (BOOL)keyboardEnabled;
|
|
|
|
- (BOOL)mouseEnabled;
|
2016-12-04 21:52:14 +00:00
|
|
|
|
|
|
|
- (NSScreen *)getTargetScreen;
|
2013-09-03 19:18:28 +00:00
|
|
|
@property(nonatomic, assign) struct vo *vout;
|
|
|
|
@end
|