35429
|
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
|
|
19 /**
|
|
20 * @file
|
|
21 * @brief Internal declarations and definitions
|
|
22 */
|
|
23
|
|
24 #ifndef MPLAYER_GUI_GUI_H
|
|
25 #define MPLAYER_GUI_GUI_H
|
|
26
|
35493
|
27 //@{
|
|
28 /// boolean symbolic constant
|
|
29 #if !defined(True) && !defined(False)
|
|
30 #define True 1
|
|
31 #define False 0
|
|
32 #endif
|
|
33 //@}
|
|
34
|
35429
|
35 /// a pseudo stream type indicating not to change the current one
|
|
36 #define SAME_STREAMTYPE (STREAMTYPE_DUMMY - 1)
|
|
37
|
|
38 /// StreamTypes that are permitted in a playlist
|
|
39 #define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM)
|
|
40
|
35675
|
41 /// check whether x/y is inside the rectangle given by top x/y and bottom x/y
|
|
42 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by))
|
|
43
|
35429
|
44 #endif /* MPLAYER_GUI_GUI_H */
|