File: Zoom.xs

package info (click to toggle)
libgtk2-imageview-perl 0.04-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 224 kB
  • ctags: 42
  • sloc: perl: 457; makefile: 52; ansic: 27
file content (143 lines) | stat: -rw-r--r-- 2,248 bytes parent folder | download
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#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.

=over

=item zoom : A zoom factor.

=back

=head3 Returns

=over

=item a zoom factor that is one step larger than the supplied one

=back

=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.

=over

=item zoom : A zoom factor.

=back

=head3 Returns

=over

=item a zoom factor that is one step smaller than the supplied one.

=back

=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.

=head3 Returns

=over

=item The minimal zoom factor.

=back

=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.

=head3 Returns

=over

=item The maximal zoom factor.

=back

=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 value.

=over

=item zoom : A zoom factor.

=back

=head3 Returns

=over

=item The zoom factor clamped to the interval [min, max].

=back

=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