2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_GUI_GMPLAYER_H
20 #define MPLAYER_GUI_GMPLAYER_H
22 extern int mplSubRender
;
23 extern int mplMainRender
;
25 extern unsigned char * mplDrawBuffer
;
26 extern unsigned char * mplMenuDrawBuffer
;
27 extern int mainVisible
;
29 extern int mplMainAutoPlay
;
30 extern int mplMiddleMenu
;
32 void mplInit( void * disp
);
34 void mplMainDraw( void );
35 void mplEventHandling( int msg
, float param
);
36 void mplMainMouseHandle( int Button
, int X
, int Y
, int RX
, int RY
);
37 void mplMainKeyHandle( int KeyCode
, int Type
, int Key
);
38 void mplDandDHandler(int num
, char** files
);
40 void mplSubDraw( void );
41 void mplSubMouseHandle( int Button
, int X
, int Y
, int RX
, int RY
);
43 void mplMenuInit( void );
44 void mplHideMenu( int mx
, int my
, int w
);
45 void mplShowMenu( int mx
, int my
);
46 void mplMenuMouseHandle( int X
, int Y
, int RX
, int RY
);
48 void mplPBInit( void );
49 void mplPBShow( int x
, int y
);
51 #endif /* MPLAYER_GUI_GMPLAYER_H */