| Portability | portable (depends on GHC) |
|---|---|
| Stability | provisional |
| Maintainer | gtk2hs-users@lists.sourceforge.net |
Graphics.UI.Gtk.ImageView.ImageNav
Description
- data ImageNav
- class WindowClass o => ImageNavClass o
- imageNavNew :: ImageViewClass view => view -> IO ImageNav
- imageNavGetPixbuf :: ImageNavClass nav => nav -> IO (Maybe Pixbuf)
- imageNavGrab :: ImageNavClass nav => nav -> IO ()
- imageNavRelease :: ImageNavClass nav => nav -> IO ()
- imageNavShowAndGrab :: ImageNavClass nav => nav -> Int -> Int -> IO ()
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
class WindowClass o => ImageNavClass o Source
Methods
imageNavNew :: ImageViewClass view => view -> IO ImageNavSource
Creates a new ImageNav for showing thumbnails of the view.
Arguments
| :: ImageNavClass nav | |
| => nav | |
| -> IO (Maybe Pixbuf) | returns the pixbuf in the navigation area this image navigator shows, or |
imageNavGrab :: ImageNavClass nav => nav -> IO ()Source
imageNavRelease :: ImageNavClass nav => nav -> IO ()Source
Arguments
| :: ImageNavClass nav | |
| => nav | |
| -> Int |
|
| -> Int |
|
| -> 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.