macOS: Use dark appearance for panel modals
[vlc.git] / modules / gui / macosx / VLCCoreInteraction.h
blobf00cef22f981af797e7e0213cd19e1d97e7c5a2f
1 /*****************************************************************************
2 * CoreInteraction.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2011-2015 Felix Paul Kühne
5 * $Id$
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
26 @interface VLCCoreInteraction : NSObject
28 + (VLCCoreInteraction *)sharedInstance;
29 @property (readwrite) int volume;
30 @property (readonly, nonatomic) float maxVolume;
31 @property (readwrite) int playbackRate;
32 @property (nonatomic, readwrite) BOOL aspectRatioIsLocked;
33 @property (readonly) int durationOfCurrentPlaylistItem;
34 @property (readonly) NSURL * URLOfCurrentPlaylistItem;
35 @property (readonly) NSString * nameOfCurrentPlaylistItem;
36 @property (nonatomic, readwrite) BOOL mute;
38 - (void)playOrPause;
39 - (void)pause;
40 - (void)stop;
41 - (void)faster;
42 - (void)slower;
43 - (void)normalSpeed;
44 - (void)toggleRecord;
45 - (void)next;
46 - (void)previous;
47 - (void)forward; //LEGACY SUPPORT
48 - (void)backward; //LEGACY SUPPORT
49 - (void)forwardExtraShort;
50 - (void)backwardExtraShort;
51 - (void)forwardShort;
52 - (void)backwardShort;
53 - (void)forwardMedium;
54 - (void)backwardMedium;
55 - (void)forwardLong;
56 - (void)backwardLong;
58 - (void)repeatOne;
59 - (void)repeatAll;
60 - (void)repeatOff;
61 - (void)shuffle;
62 - (void)setAtoB;
63 - (void)resetAtoB;
64 - (void)updateAtoB;
66 - (void)volumeUp;
67 - (void)volumeDown;
68 - (void)toggleMute;
69 - (void)showPosition;
70 - (void)startListeningWithAppleRemote;
71 - (void)stopListeningWithAppleRemote;
73 - (void)menuFocusActivate;
74 - (void)moveMenuFocusLeft;
75 - (void)moveMenuFocusRight;
76 - (void)moveMenuFocusUp;
77 - (void)moveMenuFocusDown;
79 - (void)addSubtitlesToCurrentInput:(NSArray *)paths;
81 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
83 - (void)toggleFullscreen;
85 - (BOOL)fixPreferences;
87 - (void)setVideoFilter: (const char *)psz_name on:(BOOL)b_on;
88 - (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter integer: (int)i_value;
89 - (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter float: (float)f_value;
90 - (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter string: (const char *)psz_value;
91 - (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter boolean: (BOOL)b_value;
93 - (BOOL)keyEvent:(NSEvent *)o_event;
94 - (void)updateCurrentlyUsedHotkeys;
95 - (BOOL)hasDefinedShortcutKey:(NSEvent *)o_event force:(BOOL)b_force;
97 @end