|
Revision 655, 1.5 kB
(checked in by jeffrey, 4 years ago)
|
Fixed test failures in POD
|
| Line | |
|---|
| 1 |
#include "gtkimageviewperl.h" |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
MODULE = Gtk2::ImageView::Nav PACKAGE = Gtk2::ImageView::Nav PREFIX = gtk_image_nav_ |
|---|
| 5 |
|
|---|
| 6 |
=for object Gtk2::ImageView::Nav Navigation window showing a thumbnailed overview of a Gtk2::ImageView. |
|---|
| 7 |
|
|---|
| 8 |
=head1 DESCRIPTION |
|---|
| 9 |
|
|---|
| 10 |
Gtk2::ImageView::Nav is a popup window that shows a downscaled preview of the |
|---|
| 11 |
pixbuf that Gtk2::ImageView is showing. The user can drag around a rectangle |
|---|
| 12 |
which indicates the current view of the image. |
|---|
| 13 |
|
|---|
| 14 |
This class is used by Gtk2::ImageView::ScrollWin itself. It is probably not very |
|---|
| 15 |
useful for clients of this library. |
|---|
| 16 |
|
|---|
| 17 |
Gtk2::ImageView::Nav has the same keybindings that Gtk2::ImageView has. All |
|---|
| 18 |
keypresses that it receives are passed along to the view. |
|---|
| 19 |
|
|---|
| 20 |
=cut |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
=for apidoc |
|---|
| 24 |
Returns a new Gtk2::ImageView::Nav for showing thumbnails of the view. The |
|---|
| 25 |
pixbuf is by default undef. |
|---|
| 26 |
=cut |
|---|
| 27 |
GtkWidget * |
|---|
| 28 |
gtk_image_nav_new (view) |
|---|
| 29 |
GtkImageView * view |
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
=for apidoc |
|---|
| 33 |
Returns the downscaled pixbuf of the views pixbuf that this |
|---|
| 34 |
Gtk2::ImageView::Nav shows, or undef if that pixbuf has not been created yet. |
|---|
| 35 |
|
|---|
| 36 |
The pixbuf is by default undef. |
|---|
| 37 |
=cut |
|---|
| 38 |
GdkPixbuf * |
|---|
| 39 |
gtk_image_nav_get_pixbuf (nav) |
|---|
| 40 |
GtkImageNav * nav |
|---|
| 41 |
|
|---|
| 42 |
void |
|---|
| 43 |
gtk_image_nav_grab (nav) |
|---|
| 44 |
GtkImageNav * nav |
|---|
| 45 |
|
|---|
| 46 |
void |
|---|
| 47 |
gtk_image_nav_release (nav) |
|---|
| 48 |
GtkImageNav * nav |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
=for apidoc |
|---|
| 52 |
Returns the Gtk2::ImageView::Nav centered around the point (center_x, center_y) |
|---|
| 53 |
and grab mouse and keyboard events. The grab continues until a button release |
|---|
| 54 |
event is received which causes the widget to hide. |
|---|
| 55 |
=cut |
|---|
| 56 |
void |
|---|
| 57 |
gtk_image_nav_show_and_grab (nav, center_x, center_y) |
|---|
| 58 |
GtkImageNav * nav |
|---|
| 59 |
int center_x |
|---|
| 60 |
int center_y |
|---|