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