comparison src/audacious/ui_skinned_window.h @ 2494:59661bd074b4 trunk

[svn] Try to put some skinned window code in a common place.
author nenolod
date Sat, 10 Feb 2007 17:01:44 -0800
parents
children 71bee08db1c6
comparison
equal deleted inserted replaced
2493:b7f48f00a342 2494:59661bd074b4
1 /*
2 * Audacious: A cross-platform multimedia player
3 * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; under version 2 of the License.
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
17 * 02110-1301, USA.
18 */
19
20 #ifndef UI_SKINNED_WINDOW_H
21 #define UI_SKINNED_WINDOW_H
22
23 #define SKINNED_WINDOW(obj) GTK_CHECK_CAST (obj, ui_skinned_window_get_type (), SkinnedWindow)
24 #define SKINNED_WINDOW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_window_get_type (), SkinnedWindowClass)
25 #define SKINNED_CHECK_WINDOW(obj) GTK_CHECK_TYPE (obj, ui_skinned_window_get_type ())
26 #define SKINNED_TYPE_WINDOW (ui_skinned_window_get_type())
27
28 typedef struct _SkinnedWindow SkinnedWindow;
29 typedef struct _SkinnedWindowClass SkinnedWindowClass;
30
31 struct _SkinnedWindow
32 {
33 GtkWindow window;
34
35 GtkWidget *canvas;
36 gint x,y;
37 };
38
39 struct _SkinnedWindowClass
40 {
41 GtkWindowClass parent_class;
42 };
43
44 extern GtkWidget *ui_skinned_window_new(GtkWindowType type);
45
46 #endif