1 | /* GTK - The GIMP Toolkit |
2 | * Copyright © 2013 Carlos Garnacho <carlosg@gnome.org> |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Lesser General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library 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 GNU |
12 | * Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | #ifndef __GTK_MAGNIFIER_H__ |
19 | #define __GTK_MAGNIFIER_H__ |
20 | |
21 | G_BEGIN_DECLS |
22 | |
23 | #define GTK_TYPE_MAGNIFIER (gtk_magnifier_get_type ()) |
24 | #define GTK_MAGNIFIER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MAGNIFIER, GtkMagnifier)) |
25 | #define GTK_IS_MAGNIFIER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MAGNIFIER)) |
26 | |
27 | typedef struct _GtkMagnifier GtkMagnifier; |
28 | |
29 | GType gtk_magnifier_get_type (void) G_GNUC_CONST; |
30 | |
31 | GtkWidget * _gtk_magnifier_new (GtkWidget *inspected); |
32 | |
33 | GtkWidget * _gtk_magnifier_get_inspected (GtkMagnifier *magnifier); |
34 | void _gtk_magnifier_set_inspected (GtkMagnifier *magnifier, |
35 | GtkWidget *inspected); |
36 | |
37 | void _gtk_magnifier_set_coords (GtkMagnifier *magnifier, |
38 | double x, |
39 | double y); |
40 | void _gtk_magnifier_get_coords (GtkMagnifier *magnifier, |
41 | double *x, |
42 | double *y); |
43 | |
44 | void _gtk_magnifier_set_magnification (GtkMagnifier *magnifier, |
45 | double magnification); |
46 | double _gtk_magnifier_get_magnification (GtkMagnifier *magnifier); |
47 | |
48 | void _gtk_magnifier_set_resize (GtkMagnifier *magnifier, |
49 | gboolean resize); |
50 | gboolean _gtk_magnifier_get_resize (GtkMagnifier *magnifier); |
51 | |
52 | G_END_DECLS |
53 | |
54 | #endif /* __GTK_MAGNIFIER_H__ */ |
55 | |