Mercurial > audlegacy
annotate src/audacious/ui_skinned_menurow.h @ 3071:5ae86bc2233d
oops, forgot to include new files
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 13 Jul 2007 21:49:14 +0200 |
parents | |
children | 1912eba1004b |
rev | line source |
---|---|
3071
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
1 /* |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
2 * Audacious - a cross-platform multimedia player |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
3 * Copyright (c) 2007 Audacious development team. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
4 * |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
5 * Based on: |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
6 * BMP - Cross-platform multimedia player |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
7 * Copyright (C) 2003-2004 BMP development team. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
8 * XMMS: |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
9 * Copyright (C) 1998-2003 XMMS development team. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
10 * |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
11 * This program is free software; you can redistribute it and/or modify |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
12 * it under the terms of the GNU General Public License as published by |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
13 * the Free Software Foundation; under version 2 of the License. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
14 * |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
15 * This program is distributed in the hope that it will be useful, |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
18 * GNU General Public License for more details. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
19 * |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
20 * You should have received a copy of the GNU General Public License |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
21 * along with this program; if not, write to the Free Software |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
23 */ |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
24 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
25 #ifndef UISKINNEDMENUROW_H |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
26 #define UISKINNEDMENUROW_H |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
27 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
28 #include <gdk/gdk.h> |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
29 #include <gtk/gtkadjustment.h> |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
30 #include <gtk/gtkwidget.h> |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
31 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
32 #ifdef __cplusplus |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
33 extern "C" { |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
34 #endif |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
35 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
36 #define UI_SKINNED_MENUROW(obj) GTK_CHECK_CAST (obj, ui_skinned_menurow_get_type (), UiSkinnedMenurow) |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
37 #define UI_SKINNED_MENUROW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_menurow_get_type (), UiSkinnedMenurowClass) |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
38 #define UI_SKINNED_IS_MENUROW(obj) GTK_CHECK_TYPE (obj, ui_skinned_menurow_get_type ()) |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
39 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
40 typedef struct _UiSkinnedMenurow UiSkinnedMenurow; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
41 typedef struct _UiSkinnedMenurowClass UiSkinnedMenurowClass; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
42 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
43 typedef enum { |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
44 MENUROW_NONE, MENUROW_OPTIONS, MENUROW_ALWAYS, MENUROW_FILEINFOBOX, |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
45 MENUROW_DOUBLESIZE, MENUROW_VISUALIZATION |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
46 } MenuRowItem; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
47 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
48 struct _UiSkinnedMenurow { |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
49 GtkWidget widget; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
50 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
51 gint x, y, width, height; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
52 GtkWidget *fixed; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
53 gboolean double_size; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
54 gint nx, ny; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
55 gint sx, sy; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
56 MenuRowItem selected; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
57 gboolean always_selected; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
58 gboolean doublesize_selected; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
59 gboolean pushed; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
60 SkinPixmapId skin_index; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
61 }; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
62 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
63 struct _UiSkinnedMenurowClass { |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
64 GtkWidgetClass parent_class; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
65 void (* doubled) (UiSkinnedMenurow *menurow); |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
66 void (* change) (UiSkinnedMenurow *menurow); |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
67 void (* release) (UiSkinnedMenurow *menurow); |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
68 }; |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
69 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
70 GtkWidget* ui_skinned_menurow_new (GtkWidget *fixed, gint x, gint y, gint nx, gint ny, gint sx, gint sy, SkinPixmapId si); |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
71 GtkType ui_skinned_menurow_get_type(void); |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
72 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
73 #ifdef __cplusplus |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
74 } |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
75 #endif |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
76 |
5ae86bc2233d
oops, forgot to include new files
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
77 #endif |