3217
|
1 /*
|
|
2 * Audacious - a cross-platform multimedia player
|
|
3 * Copyright (c) 2007 Audacious development team.
|
|
4 *
|
|
5 * Based on:
|
|
6 * BMP - Cross-platform multimedia player
|
|
7 * Copyright (C) 2003-2004 BMP development team.
|
|
8 * XMMS:
|
|
9 * Copyright (C) 1998-2003 XMMS development team.
|
|
10 *
|
|
11 * This program is free software; you can redistribute it and/or modify
|
|
12 * it under the terms of the GNU General Public License as published by
|
|
13 * the Free Software Foundation; under version 3 of the License.
|
|
14 *
|
|
15 * This program is distributed in the hope that it will be useful,
|
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 * GNU General Public License for more details.
|
|
19 *
|
|
20 * You should have received a copy of the GNU General Public License
|
|
21 * along with this program. If not, see <http://www.gnu.org/licenses>.
|
|
22 *
|
|
23 * The Audacious team does not consider modular code linking to
|
|
24 * Audacious or using our public API to be a derived work.
|
|
25 */
|
|
26
|
|
27 #ifndef UISKINNEDPLAYLIST_H
|
|
28 #define UISKINNEDPLAYLIST_H
|
|
29
|
3219
|
30 #include <gtk/gtk.h>
|
3251
|
31 #include "skin.h"
|
3219
|
32
|
3217
|
33 #ifdef __cplusplus
|
|
34 extern "C" {
|
|
35 #endif
|
|
36
|
|
37 #define UI_SKINNED_PLAYLIST(obj) GTK_CHECK_CAST (obj, ui_skinned_playlist_get_type (), UiSkinnedPlaylist)
|
|
38 #define UI_SKINNED_PLAYLIST_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_playlist_get_type (), UiSkinnedPlaylistClass)
|
|
39 #define UI_SKINNED_IS_PLAYLIST(obj) GTK_CHECK_TYPE (obj, ui_skinned_playlist_get_type ())
|
|
40
|
|
41 typedef struct _UiSkinnedPlaylist UiSkinnedPlaylist;
|
|
42 typedef struct _UiSkinnedPlaylistClass UiSkinnedPlaylistClass;
|
|
43
|
|
44 struct _UiSkinnedPlaylist {
|
|
45 GtkWidget widget;
|
|
46 gboolean pressed;
|
|
47 gint x, y;
|
|
48 gint first;
|
|
49 gint num_visible;
|
|
50 gint prev_selected, prev_min, prev_max;
|
|
51 gboolean tooltips;
|
|
52 gboolean drag_motion;
|
|
53 gint drag_motion_x, drag_motion_y;
|
|
54 gint fheight;
|
|
55 };
|
|
56
|
|
57 struct _UiSkinnedPlaylistClass {
|
|
58 GtkWidgetClass parent_class;
|
|
59 void (* redraw) (UiSkinnedPlaylist *playlist);
|
|
60 };
|
|
61
|
|
62 GtkWidget* ui_skinned_playlist_new(GtkWidget *fixed, gint x, gint y, gint w, gint h);
|
|
63 GtkType ui_skinned_playlist_get_type(void);
|
|
64 void ui_skinned_playlist_resize_relative(GtkWidget *widget, gint w, gint h);
|
|
65 void ui_skinned_playlist_set_font(const gchar * font);
|
|
66 void ui_skinned_playlist_move_up(UiSkinnedPlaylist *pl);
|
|
67 void ui_skinned_playlist_move_down(UiSkinnedPlaylist *pl);
|
|
68 gint ui_skinned_playlist_get_position(GtkWidget *widget, gint x, gint y);
|
|
69
|
|
70 #ifdef __cplusplus
|
|
71 }
|
|
72 #endif
|
|
73
|
|
74 #endif
|