GtkImageView Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Synopsis
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);
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.
Details
gtk_zooms_get_zoom_in ()
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 |
gtk_zooms_get_zoom_out ()
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. |
gtk_zooms_get_min_zoom ()
gdouble gtk_zooms_get_min_zoom (void);
Returns the minimum allowed zoom factor.
Returns : |
The minimal zoom factor. |
gtk_zooms_get_max_zoom ()
gdouble gtk_zooms_get_max_zoom (void);
Returns the maximum allowed zoom factor.
Returns : |
The maximal zoom factor. |