1 /* 2 * surface.h 3 * Copyright 2011 John Lindgren 4 * 5 * This file is part of Audacious. 6 * 7 * Audacious is free software: you can redistribute it and/or modify it under 8 * the terms of the GNU General Public License as published by the Free Software 9 * Foundation, version 2 or version 3 of the License. 10 * 11 * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY 12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 13 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along with 16 * Audacious. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * The Audacious team does not consider modular code linking to Audacious or 19 * using our public API to be a derived work. 20 */ 21 22 #ifndef SKINS_SURFACE_H 23 #define SKINS_SURFACE_H 24 25 #include <stdint.h> 26 #include <cairo.h> 27 28 cairo_surface_t * surface_new (int w, int h); 29 cairo_surface_t * surface_new_from_file (const char * name); 30 uint32_t surface_get_pixel (cairo_surface_t * s, int x, int y); 31 void surface_copy_rect (cairo_surface_t * a, int ax, int ay, int w, int h, 32 cairo_surface_t * b, int bx, int by); 33 34 #endif 35