1 /* 2 * Copyright (C) 2019 Alberts Muktupāvels 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef META_SURFACE_XRENDER_H 19 #define META_SURFACE_XRENDER_H 20 21 #include <X11/extensions/Xrender.h> 22 #include "meta-surface-private.h" 23 24 G_BEGIN_DECLS 25 26 #define META_TYPE_SURFACE_XRENDER (meta_surface_xrender_get_type ()) 27 G_DECLARE_FINAL_TYPE (MetaSurfaceXRender, meta_surface_xrender, 28 META, SURFACE_XRENDER, MetaSurface) 29 30 void meta_surface_xrender_update_shadow (MetaSurfaceXRender *self); 31 32 void meta_surface_xrender_paint_shadow (MetaSurfaceXRender *self, 33 XserverRegion paint_region, 34 Picture paint_buffer); 35 36 void meta_surface_xrender_paint (MetaSurfaceXRender *self, 37 XserverRegion paint_region, 38 Picture paint_buffer, 39 gboolean opaque); 40 41 G_END_DECLS 42 43 #endif 44