annotate audacious/fullscreen.h @ 0:cb178e5ad177 trunk

[svn] Import audacious source.
author nenolod
date Mon, 24 Oct 2005 03:06:47 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Zinx Verituse
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Redistribution and use in source and binary forms, with or without
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * modification, are permitted provided that the following conditions are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 * met: 1. Redistributions of source code must retain the above copyright
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * notice, this list of conditions and the following disclaimer. 2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * Redistributions in binary form must reproduce the above copyright notice,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * this list of conditions and the following disclaimer in the documentation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * and/or other materials provided with the distribution.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 * SUCH DAMAGE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #ifndef _XMMS_FULLSCREEN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 #define _XMMS_FULLSCREEN_H 1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 #include <gtk/gtk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 #include <X11/Xlib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 typedef struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 gint width, height;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 } xmms_fullscreen_mode_t;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 gboolean xmms_fullscreen_available(Display * dpy);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 gboolean xmms_fullscreen_init(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 gboolean xmms_fullscreen_enter(GtkWidget * win, gint * w, gint * h);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 void xmms_fullscreen_leave(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 gboolean xmms_fullscreen_in(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 gboolean xmms_fullscreen_mark(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 void xmms_fullscreen_unmark(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 void xmms_fullscreen_cleanup(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 GSList *xmms_fullscreen_modelist(GtkWidget * win);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 void xmms_fullscreen_modelist_free(GSList * modes);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 #endif