--- np2/x11/gtk2/xnp2.h 2004/07/14 16:01:40 1.1 +++ np2/x11/gtk2/xnp2.h 2011/01/15 19:16:59 1.8 @@ -10,8 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -28,17 +26,45 @@ #ifndef NP2_GTK2_XNP2_H__ #define NP2_GTK2_XNP2_H__ +#ifndef G_DISABLE_DEPRECATED +#define G_DISABLE_DEPRECATED +#endif + +#ifndef GLIB_DISABLE_DEPRECATED +#define GLIB_DISABLE_DEPRECATED +#endif + +#ifndef GDK_DISABLE_DEPRECATED +#define GDK_DISABLE_DEPRECATED +#endif +#ifndef GTK_DISABLE_DEPRECATED +#define GTK_DISABLE_DEPRECATED +#endif + #include #include +G_BEGIN_DECLS + extern GtkWidget *main_window; extern GtkWidget *drawarea; +typedef struct { + int depth; + int bits_per_pixel; + int scanline_pad; +} pixmap_format_t; + void install_idle_process(void); void uninstall_idle_process(void); -void gdk_window_set_pointer(GdkWindow *window, gint x, gint y); void gtk_scale_set_default_values(GtkScale *scale); -int is_32bpp(GdkWindow *window); +void gdk_window_set_pointer(GdkWindow *w, gint x, gint y); +gboolean gdk_window_get_pixmap_format(GdkWindow *w, GdkVisual *visual, pixmap_format_t *fmtp); +gboolean gtk_window_init_fullscreen(GtkWidget *widget); +void gtk_window_fullscreen_mode(GtkWidget *widget); +void gtk_window_restore_mode(GtkWidget *widget); + +G_END_DECLS #endif /* NP2_GTK2_XNP2_H__ */