 49049eb87b
			
		
	
	49049eb87b
	
	
	
		
			
			2008-01-30 Sven Neumann <sven@gimp.org> * gdk/directfb/gdkdirectfb.h * gdk/directfb/gdkdisplay-directfb.c * gdk/directfb/gdkdrawable-directfb.c * gdk/directfb/gdkim-directfb.c * gdk/directfb/gdkimage-directfb.c * gdk/directfb/gdkinput-directfb.c * gdk/directfb/gdkmain-directfb.c * gdk/directfb/gdkpixmap-directfb.c * gdk/directfb/gdktestutils-directfb.c * gdk/directfb/gdkvisual-directfb.c * gdk/directfb/gdkwindow-directfb.c: applied patch from Denis Oliver Kropp <dok@directfb.org>. Fixes various warnings, some errors and has some cleanups. svn path=/trunk/; revision=19432
		
			
				
	
	
		
			92 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* GDK - The GIMP Drawing Kit
 | |
|  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 | |
|  *
 | |
|  * This library is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU Lesser General Public
 | |
|  * License as published by the Free Software Foundation; either
 | |
|  * version 2 of the License, or (at your option) any later version.
 | |
|  *
 | |
|  * This library is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|  * Lesser General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU Lesser General Public
 | |
|  * License along with this library; if not, write to the
 | |
|  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | |
|  * Boston, MA 02111-1307, USA.
 | |
|  */
 | |
| 
 | |
| /*
 | |
|  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
 | |
|  * file for a list of people on the GTK+ Team.
 | |
|  */
 | |
| 
 | |
| /*
 | |
|  * GTK+ DirectFB backend
 | |
|  * Copyright (C) 2001-2002  convergence integrated media GmbH
 | |
|  * Copyright (C) 2002       convergence GmbH
 | |
|  * Written by Denis Oliver Kropp <dok@convergence.de> and
 | |
|  *            Sven Neumann <sven@convergence.de>
 | |
|  */
 | |
| 
 | |
| #ifndef __GDK_DIRECTFB_H__
 | |
| #define __GDK_DIRECTFB_H__
 | |
| 
 | |
| /* This define disables some experimental code
 | |
|  */
 | |
| #define GDK_DIRECTFB_NO_EXPERIMENTS
 | |
| 
 | |
| #include <cairo.h>
 | |
| #include <directfb.h>
 | |
| #include "gdk/gdkprivate.h"
 | |
| 
 | |
| 
 | |
| extern GdkWindow * _gdk_parent_root;
 | |
| 
 | |
| G_BEGIN_DECLS
 | |
| 
 | |
| #define GDK_ROOT_WINDOW()      _gdk_parent_root 
 | |
| 
 | |
| #define GDK_WINDOW_DFB_ID(win) (GDK_WINDOW_IMPL_DIRECTFB (GDK_WINDOW_OBJECT (win)->impl)->dfb_id)
 | |
| 
 | |
| 
 | |
| /* used for the --transparent-unfocused hack */
 | |
| extern gboolean            gdk_directfb_apply_focus_opacity;
 | |
| 
 | |
| /* used for the --enable-color-keying hack */
 | |
| extern gboolean            gdk_directfb_enable_color_keying;
 | |
| extern DFBColor            gdk_directfb_bg_color;
 | |
| extern DFBColor            gdk_directfb_bg_color_key;
 | |
| 
 | |
| /* to disable antialiasing */
 | |
| extern gboolean            gdk_directfb_monochrome_fonts;
 | |
| 
 | |
| 
 | |
| /* GTK+-DirectFB specific functions */
 | |
| 
 | |
| void        gdk_directfb_window_set_opacity (GdkWindow             *window,
 | |
|                                              guchar                 opacity);
 | |
| 
 | |
| GdkWindow * gdk_directfb_window_new         (GdkWindow             *parent,
 | |
|                                              GdkWindowAttr         *attributes,
 | |
|                                              gint                   attributes_mask,
 | |
|                                              DFBWindowCapabilities  window_caps,
 | |
|                                              DFBWindowOptions       window_options,
 | |
|                                              DFBSurfaceCapabilities surface_caps);
 | |
| 
 | |
| GdkVisual * gdk_directfb_visual_by_format   (DFBSurfacePixelFormat  pixel_format);
 | |
| 
 | |
| IDirectFBWindow *gdk_directfb_window_lookup(GdkWindow *window);
 | |
| IDirectFBSurface *gdk_directfb_surface_lookup(GdkWindow *window);
 | |
| 
 | |
| #if (DIRECTFB_MAJOR_VERSION >= 1)
 | |
| GdkWindow *gdk_directfb_create_child_window(GdkWindow *parent,
 | |
|                 IDirectFBSurface *subsurface);
 | |
| #endif
 | |
| 
 | |
| 
 | |
| G_END_DECLS
 | |
| 
 | |
| #endif /* __GDK_DIRECTFB_H__ */
 |