Debian Codegraph @

src/utils.h

raw
1 /*
2 * Copyright (C) Pietro Pilolli 2010 <[email protected]>
3 *
4 * Curtain is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Curtain is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18
19 /* Grab pointer. */
20 void
21 grab_pointer (GtkWidget *win,
22 GdkEventMask eventmask);
23
24
25 /* Ungrab pointer. */
26 void
27 ungrab_pointer (GdkDisplay *display);
28
29
30 /* Set the cairo surface color to the RGBA string. */
31 void
32 cairo_set_source_color_from_string (cairo_t *cr,
33 gchar *color);
34
35
36 /* Scale the surface with the width and height requested */
37 cairo_surface_t *
38 scale_surface (cairo_surface_t *surface,
39 gdouble width,
40 gdouble height);
41
42