1 /*
2  * Copyright (C) 2000-2017 the xine project
3  *
4  * This file is part of xine, a unix video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  * all the various actions for the gui (play, stop, open, pause...)
21  *
22  */
23 
24 #ifndef ACTIONS_H
25 #define ACTIONS_H
26 
27 #include "common.h"
28 
29 #define GUI_NEXT     1
30 #define GUI_PREV     2
31 #define GUI_RESET    3
32 
33 void reparent_window(Window window);
34 void reparent_all_windows(void);
35 void raise_window(Window window, int visible, int running);
36 void toggle_window(Window window, xitk_widget_list_t *widget_list, int *visible, int running);
37 
38 int gui_xine_get_pos_length(xine_stream_t *stream, int *pos, int *time, int *length);
39 void wait_for_window_visible(Display *display, Window window);
40 void try_to_set_input_focus(Window window);
41 void gui_display_logo(void);
42 int gui_xine_play (gGui_t *gui, xine_stream_t *stream, int start_pos, int start_time, int update_mmk);
43 int gui_open_and_play_alternates(mediamark_t *mmk, const char *sub);
44 int gui_xine_open_and_play(char *mrl, char *sub, int start_pos,
45 			   int start_time, int av_offset, int spu_offset, int report_error);
46 void gui_exit (xitk_widget_t *w, void *gui);
47 void gui_play (xitk_widget_t *w, void *gui);
48 void gui_stop (xitk_widget_t *w, void *gui);
49 void gui_close (xitk_widget_t *w, void *gui);
50 void gui_pause (xitk_widget_t *w, void *gui, int state);
51 void gui_eject (xitk_widget_t *w, void *gui);
52 void gui_toggle_visibility (xitk_widget_t *w, void *gui);
53 void gui_toggle_border (xitk_widget_t *w, void *gui);
54 void gui_set_fullscreen_mode (xitk_widget_t *w, void *gui);
55 #ifdef HAVE_XINERAMA
56 void gui_set_xinerama_fullscreen_mode(void);
57 #endif
58 void gui_toggle_aspect(int aspect);
59 void gui_toggle_interlaced(void);
60 void gui_direct_change_audio_channel (xitk_widget_t *w, void *gui, int value);
61 void gui_change_audio_channel(xitk_widget_t *w, void *data);
62 void gui_direct_change_spu_channel(xitk_widget_t *w, void *data, int value);
63 void gui_change_spu_channel(xitk_widget_t *w, void *data);
64 void gui_change_speed_playback(xitk_widget_t *w, void *data);
65 void gui_set_current_position (int pos);
66 void gui_seek_relative (int off_sec) ;
67 void gui_dndcallback (const char *filename);
68 void gui_change_skin(xitk_widget_t *w, void *data);
69 void gui_direct_nextprev(xitk_widget_t *w, void *data, int value);
70 void gui_nextprev(xitk_widget_t *w, void *data);
71 void gui_playlist_show(xitk_widget_t *w, void *data);
72 void gui_mrlbrowser_show(xitk_widget_t *w, void *data);
73 void gui_set_current_mmk(mediamark_t *mmk);
74 void gui_set_current_mmk_by_index(int idx);
75 void gui_control_show(xitk_widget_t *w, void *data);
76 void gui_mrl_browser_show(xitk_widget_t *w, void *data);
77 void gui_setup_show(xitk_widget_t *w, void *data);
78 void gui_event_sender_show(xitk_widget_t *w, void *data);
79 void gui_viewlog_show(xitk_widget_t *w, void *data);
80 void gui_kbedit_show(xitk_widget_t *w, void *data);
81 void gui_help_show(xitk_widget_t *w, void *data);
82 void gui_stream_infos_show(xitk_widget_t *w, void *data);
83 void gui_tvset_show(xitk_widget_t *w, void *data);
84 void gui_vpp_show(xitk_widget_t *w, void *data);
85 void gui_vpp_enable(void);
86 int is_layer_above(void);
87 void change_audio_vol(int value);
88 void layer_above_video(Window w);
89 void gui_increase_audio_volume(void);
90 void gui_decrease_audio_volume(void);
91 void gui_app_show(xitk_widget_t *w, void *data);
92 void gui_app_enable(void);
93 void change_amp_vol(int value);
94 void gui_increase_amp_level(void);
95 void gui_decrease_amp_level(void);
96 void gui_reset_amp_level(void);
97 void gui_change_zoom(int zoom_dx, int zoom_dy);
98 void gui_reset_zoom(void);
99 void gui_toggle_tvmode(void);
100 void gui_send_expose_to_window(Window window);
101 void gui_add_mediamark(void);
102 void gui_file_selector(void);
103 void gui_select_sub(void);
104 void visual_anim_init(void);
105 void visual_anim_done(void);
106 void visual_anim_add_animation(char *mrl);
107 void visual_anim_play(void);
108 void visual_anim_play_next(void);
109 void visual_anim_stop(void);
110 
111 #endif
112