gtkimageview-0.12.0: Binding to the GtkImageView library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.ImageView.Zooms

Contents

Description

 

Synopsis

Details

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

Methods

zoomsGetZoomInSource

Arguments

:: Double

zoom A zoom factor.

-> IO Double

returns a zoom factor that is one step larger than the supplied one

Returns the zoom factor that is one step larger than the supplied zoom factor.

zoomsGetZoomOutSource

Arguments

:: Double

zoom a zoom factor

-> IO Double

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

Returns the zoom factor that is one step smaller than the supplied zoom factor.

zoomsGetMinZoomSource

Arguments

:: IO Double

returns The minimal zoom factor.

Returns the minimum allowed zoom factor.

zoomsGetMaxZoomSource

Arguments

:: IO Double

returns The maximal zoom factor.

Returns the maximum allowed zoom factor.

zoomsClampZoomSource

Arguments

:: Double

zoom A zoom factor

-> IO Double

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

Returns the zoom factor clamped to the minumum and maximum allowed value.