Changeset 456 for plgtkimageview/ImageNav.xs
- Timestamp:
- 12/27/07 23:50:17 (5 years ago)
- Files:
-
- plgtkimageview/ImageNav.xs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plgtkimageview/ImageNav.xs
r451 r456 4 4 MODULE = Gtk2::ImageView::Nav PACKAGE = Gtk2::ImageView::Nav PREFIX = gtk_image_nav_ 5 5 6 =for object Gtk2::ImageView::Nav Navigation window showing a thumbnailed overview of a Gtk2::ImageView. 6 7 8 =head1 DESCRIPTION 9 10 Gtk2::ImageView::Nav is a popup window that shows a downscaled preview of the pixbuf that Gtk2::ImageView is showing. The user can drag around a rectangle which indicates the current view of the image. 11 12 This class is used by Gtk2::ImageView::ScrollWin itself. It is probably not very useful for clients of this library. 13 14 Gtk2::ImageView::Nav has the same keybindings that Gtk2::ImageView has. All keypresses that it receives are passed along to the view. 15 16 =cut 17 18 19 =for apidoc 20 21 Creates a new Gtk2::ImageView::Nav for showing thumbnails of the view. The pixbuf is by default NULL. 22 23 =over 24 25 =item view : a Gtk2::ImageView. 26 27 =back 28 29 =head3 Returns 30 31 =over 32 33 =item a new Gtk2::ImageView::Nav showing the view. 34 35 =back 36 37 =cut 7 38 GtkWidget * 8 39 gtk_image_nav_new (view) 9 40 GtkImageView * view 10 41 42 43 =for apidoc 44 45 Returns the downscaled pixbuf of the views pixbuf that this Gtk2::ImageView::Nav shows, or NULL if that pixbuf has not been created yet. 46 47 The pixbuf is by default NULL. 48 49 =over 50 51 =item nav : a Gtk2::ImageView::Nav. 52 53 =back 54 55 =head3 Returns 56 57 =over 58 59 =item the pixbuf in the navigation area this image navigator shows, or NULL if none exist. 60 61 =back 62 63 =cut 11 64 GdkPixbuf * 12 65 gtk_image_nav_get_pixbuf (nav) … … 21 74 GtkImageNav * nav 22 75 76 77 =for apidoc 78 79 Show the Gtk2::ImageView::Nav centered around the point (center_x, center_y) and grab mouse and keyboard events. The grab continues until a button release event is received which causes the widget to hide. 80 81 =over 82 83 =item nav : a Gtk2::ImageView::Nav. 84 85 =item center_x : x coordinate of center position 86 87 =item center_y : y coordinate of center position 88 89 =back 90 91 =head3 Returns 92 93 =over 94 95 =item the pixbuf in the navigation area this image navigator shows, or NULL if none exist. 96 97 =back 98 99 =cut 23 100 void 24 101 gtk_image_nav_show_and_grab (nav, center_x, center_y)
