2013-02-23 17:28:22 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
2017-06-24 14:08:17 +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-02-23 17:28:22 +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:08:17 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2013-02-23 17:28:22 +00:00
|
|
|
*
|
2017-06-24 14:08:17 +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-02-23 17:28:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MPV_MACOSX_APPLICATION
|
|
|
|
#define MPV_MACOSX_APPLICATION
|
|
|
|
|
2017-07-29 13:26:58 +00:00
|
|
|
#include "osdep/macosx_menubar.h"
|
2019-03-29 19:39:42 +00:00
|
|
|
#include "options/m_option.h"
|
2013-02-23 17:28:22 +00:00
|
|
|
|
2018-06-06 15:04:40 +00:00
|
|
|
struct macos_opts {
|
|
|
|
int macos_title_bar_style;
|
2019-03-29 19:38:02 +00:00
|
|
|
int macos_title_bar_appearance;
|
|
|
|
int macos_title_bar_material;
|
2019-03-29 19:39:42 +00:00
|
|
|
struct m_color macos_title_bar_color;
|
2018-06-06 15:04:40 +00:00
|
|
|
int macos_fs_animation_duration;
|
2018-07-22 21:07:32 +00:00
|
|
|
int cocoa_cb_sw_renderer;
|
2018-06-06 15:04:40 +00:00
|
|
|
};
|
|
|
|
|
2013-03-04 13:23:06 +00:00
|
|
|
// multithreaded wrapper for mpv_main
|
2015-05-02 16:47:57 +00:00
|
|
|
int cocoa_main(int argc, char *argv[]);
|
2013-02-23 17:28:22 +00:00
|
|
|
void cocoa_register_menu_item_action(MPMenuKey key, void* action);
|
|
|
|
|
|
|
|
#endif /* MPV_MACOSX_APPLICATION */
|