Mercurial > mplayer.hg
annotate gui/ui/ui.h @ 35778:8ba56e7c14fb
Set MouseHandler for menu window.
Adjust parameters to prototype and use this handler to call the menu.
As a result, uiMenuMouse() can be static now.
author | ib |
---|---|
date | Fri, 25 Jan 2013 11:51:37 +0000 |
parents | 6d576acb772b |
children | 4073fff5efc7 |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
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. | |
8 * | |
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. | |
13 * | |
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. | |
17 */ | |
18 | |
35528 | 19 #ifndef MPLAYER_GUI_UI_H |
20 #define MPLAYER_GUI_UI_H | |
23077 | 21 |
33555 | 22 extern unsigned char * mainDrawBuffer; |
23 extern unsigned char * menuDrawBuffer; | |
23077 | 24 extern int mainVisible; |
25 | |
35771 | 26 extern int uiMainRender; |
33555 | 27 extern int uiPlaybarFade; |
23077 | 28 |
32065
319ae9dc51a2
Move sx/sy extern variable declaration to gmplayer.h, which is better suited.
diego
parents:
32041
diff
changeset
|
29 extern int sx, sy; |
319ae9dc51a2
Move sx/sy extern variable declaration to gmplayer.h, which is better suited.
diego
parents:
32041
diff
changeset
|
30 |
33555 | 31 void uiMainDraw( void ); |
35762 | 32 void uiMainMouse( int Button, int X, int Y, int RX, int RY ); |
33 void uiMainKey( int KeyCode, int Type, int Key ); | |
35763 | 34 void uiMainDND(int num, char** files); |
23077 | 35 |
34697 | 36 void uiVideoDraw( void ); |
35762 | 37 void uiVideoMouse( int Button, int X, int Y, int RX, int RY ); |
23077 | 38 |
33555 | 39 void uiMenuInit( void ); |
35766
16ed8155439b
Rename uiShowMenu() uiMenuShow() and uiHideMenu() uiMenuHide().
ib
parents:
35763
diff
changeset
|
40 void uiMenuHide( int mx, int my, int w ); |
16ed8155439b
Rename uiShowMenu() uiMenuShow() and uiHideMenu() uiMenuHide().
ib
parents:
35763
diff
changeset
|
41 void uiMenuShow( int mx, int my ); |
23077 | 42 |
33555 | 43 void uiPlaybarInit( void ); |
34471 | 44 void uiPlaybarShow( int y ); |
23077 | 45 |
35528 | 46 #endif /* MPLAYER_GUI_UI_H */ |