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
|
36053
|
27 /// Name of the program the GUI utilizes
|
|
28 #define MPlayer "MPlayer"
|
|
29
|
35493
|
30 //@{
|
35729
|
31 /// Boolean symbolic constant
|
35493
|
32 #if !defined(True) && !defined(False)
|
|
33 #define True 1
|
|
34 #define False 0
|
|
35 #endif
|
|
36 //@}
|
|
37
|
35729
|
38 /// A pseudo stream type indicating not to change the current one
|
35429
|
39 #define SAME_STREAMTYPE (STREAMTYPE_DUMMY - 1)
|
|
40
|
|
41 /// StreamTypes that are permitted in a playlist
|
|
42 #define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM)
|
|
43
|
35729
|
44 /// Check whether @a x/y is inside the rectangle given by @a top @a x/y and @a bottom @a x/y.
|
35675
|
45 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by))
|
|
46
|
35429
|
47 #endif /* MPLAYER_GUI_GUI_H */
|