.
1 /*
2 Copyright (C) 2015 Johan Mattsson
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 3 of the
7 License, or (at your option) any later version.
8
9 This library 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. See the GNU
12 Lesser General Public License for more details.
13 */
14
15 using Cairo;
16 using Math;
17 using Gee;
18
19 namespace BirdFont {
20
21 public class ScaledBackgroundPart : GLib.Object {
22 public double scale;
23 public int offset_x;
24 public int offset_y;
25 public ImageSurface image;
26
27 public ScaledBackgroundPart (ImageSurface image, double scale, int offset_x, int offset_y) {
28 this.image = image;
29 this.scale = scale;
30 this.offset_x = offset_x;
31 this.offset_y = offset_y;
32 }
33
34 public double get_scale () {
35 return scale;
36 }
37
38 public ImageSurface get_image () {
39 return image;
40 }
41 }
42
43 }
44