2013-09-03 19:18:28 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
|
|
|
* mpv is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with mpv. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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;
|
2014-10-09 20:11:12 +00:00
|
|
|
- (void)putKeyEvent:(NSEvent*)event;
|
2013-09-03 19:18:28 +00:00
|
|
|
- (void)putKey:(int)mpkey withModifiers:(int)modifiers;
|
|
|
|
- (void)putAxis:(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;
|
2013-09-03 19:18:28 +00:00
|
|
|
|
|
|
|
- (BOOL)isInFullScreenMode;
|
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
|