2313
|
1 /* XMMS - Cross-platform multimedia player
|
|
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
|
|
3 *
|
|
4 * This program 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 * This program 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
|
|
15 * along with this program; if not, write to the Free Software
|
|
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
17 */
|
|
18
|
|
19 #ifndef _WIDGETCORE_H_
|
|
20 #error Please do not include me directly! Use widgetcore.h instead!
|
|
21 #endif
|
|
22
|
|
23 #ifndef PLAYSTATUS_H
|
|
24 #define PLAYSTATUS_H
|
|
25
|
|
26 #include "widget.h"
|
|
27
|
|
28 typedef enum {
|
|
29 STATUS_STOP, STATUS_PAUSE, STATUS_PLAY
|
|
30 } PStatus;
|
|
31
|
|
32 #define PLAY_STATUS(x) ((PlayStatus *)(x))
|
|
33 struct _PlayStatus {
|
|
34 Widget ps_widget;
|
|
35 PStatus ps_status;
|
|
36 gboolean ps_status_buffering;
|
|
37 };
|
|
38
|
|
39 typedef struct _PlayStatus PlayStatus;
|
|
40
|
|
41 void playstatus_set_status(PlayStatus * ps, PStatus status);
|
|
42 void playstatus_set_status_buffering(PlayStatus * ps, gboolean status);
|
|
43 PlayStatus *create_playstatus(GList ** wlist, GdkPixmap * parent,
|
|
44 GdkGC * gc, gint x, gint y);
|
|
45
|
|
46 #endif
|