gtkimageview-0.12.0: Binding to the GtkImageView library.

Portabilityportable (depends on GHC)







IImageTool is an interface that defines how ImageView interacts with objects that acts as tools. ImageView delegates many of its most important tasks (such as drawing) to its tool which carries out all the hard work. The ImageView package comes with two tools; ImageToolDragger and ImageToolSelector, but by implementing your own tool it is possible to extend ImageView to do stuff its author (thats me) didn't imagine.

ImageView uses ImageToolDragger by default, as that tool is he most generally useful one. However, it is trivial to make it use another tool.





:: IImageToolClass tool 
=> tool 
-> Bool

resetFit whether the view is resetting its fit mode or not

-> Maybe Rectangle

rect rectangle containing the changed area or Nothing

-> IO () 

Indiate to the tool that either a part of, or the whole pixbuf that the image view shows has changed. This method is called by the view whenever its pixbuf or its tool changes. That is, when any of the following methods are used:

  • imageViewSetPixbuf

If the resetFit parameter is True, it means that a new pixbuf has been loaded into the view. rect is a rectangle in image space coordinates that indicates which rectangular region of the pixbufs pixels that is modified. If rect is Nothing, then all of the pixbuf has changed. See also pixbufChanged.