gtkimageview-0.11.1: Binding to the GtkImageView library.

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

Graphics.UI.Gtk.ImageView.ImageNav

Contents

Description

 

Synopsis

Details

ImageNav is a popup window that shows a downscaled preview of the pixbuf that ImageView is showing. The user can drag around a rectangle which indicates the current view of the image.

This class is used by ImageScrollWin itself. It is probably not very useful for clients of this library.

ImageNav has the same keybindings that ImageView has. All keypresses that it receives are passed along to the view.

Types

Methods

imageNavNew :: ImageViewClass view => view -> IO ImageNavSource

Creates a new ImageNav for showing thumbnails of the view.

imageNavGetPixbufSource

Arguments

:: ImageNavClass nav 
=> nav 
-> IO (Maybe Pixbuf)

returns the pixbuf in the navigation area this image navigator shows, or Nothing if none exist.

Returns the downscaled pixbuf of the views pixbuf that this ImageNav shows, or Nothing if that pixbuf has not been created yet.

imageNavShowAndGrabSource

Arguments

:: ImageNavClass nav 
=> nav 
-> Int

centerX x coordinate of center position

-> Int

centerY y coordinate of center position

-> IO () 

Show the ImageNav centered around the point (centerX, centerY) and grab mouse and keyboard events. The grab continues until a button release event is received which causes the widget to hide.