2 * arch-tag: Header for main song information display widget
4 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
5 * Copyright (C) 2003 Colin Walters <walters@verbum.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include <gtk/gtkhbox.h>
29 #include "rb-shell-player.h"
33 #define RB_TYPE_HEADER (rb_header_get_type ())
34 #define RB_HEADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_HEADER, RBHeader))
35 #define RB_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_HEADER, RBHeaderClass))
36 #define RB_IS_HEADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_HEADER))
37 #define RB_IS_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_HEADER))
38 #define RB_HEADER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_HEADER, RBHeaderClass))
40 typedef struct RBHeaderPrivate RBHeaderPrivate
;
46 RBHeaderPrivate
*priv
;
54 GType
rb_header_get_type (void);
56 RBHeader
* rb_header_new (RBShellPlayer
*header
,
59 void rb_header_set_playing_entry (RBHeader
*header
,
63 void rb_header_set_show_position_slider (RBHeader
*header
,
66 void rb_header_sync (RBHeader
*header
);
68 gboolean
rb_header_sync_time (RBHeader
*header
);
70 char * rb_header_get_elapsed_string (RBHeader
*header
);
74 #endif /* __RB_HEADER_H */