|  |  |  | GtkImageView Reference Manual | |
|---|---|---|---|---|
| Top | Description | ||||
gdouble gtk_zooms_get_zoom_in (gdouble zoom); gdouble gtk_zooms_get_zoom_out (gdouble zoom); gdouble gtk_zooms_get_min_zoom (void); gdouble gtk_zooms_get_max_zoom (void); gdouble gtk_zooms_clamp_zoom (gdouble zoom);
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.
gdouble gtk_zooms_get_zoom_in (gdouble zoom);
Returns the zoom factor that is one step larger than the supplied zoom factor.
| 
 | A zoom factor. | 
| Returns : | a zoom factor that is one step larger than the supplied one | 
gdouble gtk_zooms_get_zoom_out (gdouble zoom);
Returns the zoom factor that is one step smaller than the supplied zoom factor.
| 
 | a zoom factor | 
| Returns : | a zoom factor that is one step smaller than the supplied one. | 
gdouble gtk_zooms_get_min_zoom (void);
Returns the minimum allowed zoom factor.
| Returns : | The minimal zoom factor. | 
gdouble gtk_zooms_get_max_zoom (void);
Returns the maximum allowed zoom factor.
| Returns : | The maximal zoom factor. |