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 #include <X11/extensions/Xfixes.h> 00023 #include <X11/extensions/Xdamage.h> 00024 #ifdef HAVE_COMPOSITE 00025 #include <X11/extensions/Xrender.h> 00026 #endif /* HAVE_COMPOSITE */ 00027 00028 #include "magnifier.h" 00029 00030 typedef struct _GmagWin { 00031 Window xwin; 00032 Damage damage; 00033 gboolean damaged; 00034 #ifdef HAVE_COMPOSITE 00035 Picture pic; 00036 #endif /* HAVE_COMPOSITE */ 00037 XWindowAttributes attr; 00038 XserverRegion clip; 00039 XserverRegion win_region; 00040 XserverRegion damaged_region; 00041 } GmagWin, *GmagWinPtr; 00042 00043 void gmag_events_client_init (Magnifier *magnifier); 00044 GdkPixbuf *gmag_events_get_source_pixbuf (Magnifier *magnifier); 00045 gboolean gmag_events_source_has_damage_extension (Magnifier *magnifier);