gmag-events.h

Go to the documentation of this file.
00001 /*
00002  * GNOME-MAG Magnification service for GNOME
00003  *
00004  * Copyright 2006 Carlos Eduardo Rodrigues Diógenes
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the
00018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
00020  */
00021 
00022 #ifdef HAVE_XFIXES
00023 #include <X11/extensions/Xfixes.h>
00024 #ifdef HAVE_DAMAGE
00025 #include <X11/extensions/Xdamage.h>
00026 #ifdef HAVE_COMPOSITE
00027 #include <X11/extensions/Xrender.h>
00028 #endif /* HAVE_COMPOSITE */
00029 #endif /* HAVE_DAMAGE */
00030 #endif /* HAVE_XFIXES */
00031 
00032 #include "magnifier.h"
00033 
00034 typedef struct _GmagWin {
00035         Window            xwin;
00036 #ifdef HAVE_XFIXES
00037 #ifdef HAVE_DAMAGE
00038         Damage            damage;
00039         gboolean          damaged;
00040 #ifdef HAVE_COMPOSITE
00041         Picture           pic;
00042 #endif /* HAVE_COMPOSITE */
00043 #endif /* HAVE_DAMAGE */
00044         XWindowAttributes attr;
00045         XserverRegion     clip;
00046         XserverRegion     win_region;
00047         XserverRegion     damaged_region;
00048 #endif /* HAVE_XFIXES */
00049 } GmagWin, *GmagWinPtr;
00050 
00051 void       gmag_events_client_init (Magnifier *magnifier);
00052 GdkPixbuf *gmag_events_get_source_pixbuf (Magnifier *magnifier);
00053 gboolean   gmag_events_source_has_damage_extension (Magnifier *magnifier);

Generated on Thu Jan 25 16:23:22 2007 for gnome-mag by  doxygen 1.4.7