File: Zoom.xs

package info (click to toggle)
libgtk2-imageview-perl 0.05-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 224 kB
  • ctags: 36
  • sloc: perl: 457; ansic: 27; makefile: 17
file content (75 lines) | stat: -rw-r--r-- 1,701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include "gtkimageviewperl.h"


MODULE = Gtk2::ImageView::Zoom  PACKAGE = Gtk2::ImageView::Zoom  PREFIX = gtk_zooms_


=for object Gtk2::ImageView::Zoom Functions for dealing with zoom factors
=cut

=for position DESCRIPTION

=head1 DESCRIPTION

GtkImageView uses a discrete amount of zoom factors for determining which zoom to set. Using these functions, it is possible to retrieve information and manipulate a zoom factor.

=cut


=for apidoc
Returns the zoom factor that is one step larger than the supplied zoom factor.
=cut
## call as $zoom = Gtk2::ImageView::Zoom->get_zoom_in($zoom)
## gdouble gtk_zooms_get_zoom_in(gdouble zoom);
gdouble
gtk_zooms_get_zoom_in (class, zoom)
	gdouble zoom
	C_ARGS:
		zoom


=for apidoc
Returns the zoom factor that is one step smaller than the supplied zoom factor.
=cut
## call as $zoom = Gtk2::ImageView::Zoom->get_zoom_out($zoom)
## gdouble gtk_zooms_get_zoom_out(gdouble zoom);
gdouble
gtk_zooms_get_zoom_out (class, zoom)
	gdouble zoom
	C_ARGS:
		zoom


=for apidoc
Returns the minimum allowed zoom factor.
=cut
## call as $zoom = Gtk2::ImageView::Zoom->get_min_zoom
## gdouble gtk_zooms_get_min_zoom(void);
gdouble
gtk_zooms_get_min_zoom (class)
	C_ARGS:
		/*void*/


=for apidoc
Returns the maximum allowed zoom factor.
=cut
## call as $zoom = Gtk2::ImageView::Zoom->get_max_zoom
## gdouble gtk_zooms_get_max_zoom(void);
gdouble
gtk_zooms_get_max_zoom (class)
	C_ARGS:
		/*void*/


=for apidoc
Returns the zoom factor clamped to the minumum and maximum allowed values.
=cut
## call as $zoom = Gtk2::ImageView::Zoom->clamp_zoom($zoom)
## gdouble gtk_zooms_clamp_zoom(gdouble zoom;
gdouble
gtk_zooms_clamp_zoom (class, zoom)
	gdouble zoom
	C_ARGS:
		zoom