~noskcaj/ubuntu/trusty/gthumb/3.2.5

« back to all changes in this revision

Viewing changes to extensions/file_tools/cairo-rotate.h

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2011-12-22 22:40:29 UTC
  • mfrom: (5.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20111222224029-l58g65u1nfa6ojtg
Tags: 3:2.14.1-1
* New upstream version (Closes: #652692)
* Patches refreshed
* Bump build-dependencies requirements
* Fix FTBFS, added missing #include
* debian/watch fixed to point to new location (.xz tarballs)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
 
 
3
/*
 
4
 *  GThumb
 
5
 *
 
6
 *  Copyright (C) 2011 The Free Software Foundation, Inc.
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; either version 2 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  This program is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef CAIRO_ROTATE_H
 
23
#define CAIRO_ROTATE_H
 
24
 
 
25
#include <glib.h>
 
26
#include <gdk/gdk.h>
 
27
#include <gdk-pixbuf/gdk-pixbuf.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
void               _cairo_image_surface_rotate_get_cropping_parameters (cairo_surface_t   *image,
 
32
                                                                        double             angle,
 
33
                                                                        double            *p1_plus_p2,
 
34
                                                                        double            *p_min);
 
35
void               _cairo_image_surface_rotate_get_cropping_region     (cairo_surface_t   *image,
 
36
                                                                        double             angle,
 
37
                                                                        double             p1,
 
38
                                                                        double             p2,
 
39
                                                                        GdkRectangle      *region);
 
40
double             _cairo_image_surface_rotate_get_align_angle         (gboolean           vertical,
 
41
                                                                        GdkPoint          *p1,
 
42
                                                                        GdkPoint          *p2);
 
43
cairo_surface_t *  _cairo_image_surface_rotate                         (cairo_surface_t   *image,
 
44
                                                                        double             angle,
 
45
                                                                        gboolean           high_quality,
 
46
                                                                        cairo_color_t     *background_color);
 
47
 
 
48
G_END_DECLS
 
49
 
 
50
#endif /* CAIRO_ROTATE_H */