.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Gtk2::ImageView 3pm" .TH Gtk2::ImageView 3pm "2014-08-15" "perl v5.20.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::ImageView \- General purpose image viewer for Gtk+ .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Gtk2::ImageView; \& Gtk2\->init; \& \& $window = Gtk2::Window\->new(); \& \& $view = Gtk2::ImageView\->new; \& $view\->set_pixbuf($pixbuf, TRUE); \& $window\->add($view); \& \& $window\->show_all; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" GtkImageView is a full-featured general purpose image viewer widget for \s-1GTK.\s0 It provides a scrollable, zoomable pane in which a pixbuf can be displayed. .PP The Gtk2::ImageView module allows a perl developer to use the GtkImageView Widget. .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 5 \& Glib::Object \& +\-\-\-\-Glib::InitiallyUnowned \& +\-\-\-\-Gtk2::Object \& +\-\-\-\-Gtk2::Widget \& +\-\-\-\-Gtk2::ImageView .Ve .SH "INTERFACES" .IX Header "INTERFACES" .Vb 2 \& Glib::Object::_Unregistered::AtkImplementorIface \& Gtk2::Buildable .Ve .SH "METHODS" .IX Header "METHODS" .SS "widget or undef = Gtk2::ImageView\->\fBnew\fP" .IX Subsection "widget or undef = Gtk2::ImageView->new" Returns a new Gtk2::ImageView with the following default values. .IP "black bg : \s-1FALSE\s0" 4 .IX Item "black bg : FALSE" .PD 0 .IP "fitting : \s-1TRUE\s0" 4 .IX Item "fitting : TRUE" .IP "image tool : a Gtk2::ImageView::Tool::Dragger instance" 4 .IX Item "image tool : a Gtk2::ImageView::Tool::Dragger instance" .IP "interpolation mode : \s-1GDK_INTERP_BILINEAR\s0" 4 .IX Item "interpolation mode : GDK_INTERP_BILINEAR" .IP "offset : (0, 0)" 4 .IX Item "offset : (0, 0)" .IP "pixbuf : \s-1NULL\s0" 4 .IX Item "pixbuf : NULL" .IP "show cursor: \s-1TRUE\s0" 4 .IX Item "show cursor: TRUE" .IP "show frame : \s-1TRUE\s0" 4 .IX Item "show frame : TRUE" .IP "transp : \s-1GTK_IMAGE_TRANSP_GRID\s0" 4 .IX Item "transp : GTK_IMAGE_TRANSP_GRID" .IP "zoom : 1.0" 4 .IX Item "zoom : 1.0" .PD .ie n .SS "boolean = $view\->\fBget_black_bg\fP" .el .SS "boolean = \f(CW$view\fP\->\fBget_black_bg\fP" .IX Subsection "boolean = $view->get_black_bg" Returns \s-1TRUE\s0 if the view renders the widget on a black background, otherwise \&\s-1FALSE.\s0 .ie n .SS "$view\->\fBset_black_bg\fP ($black_bg)" .el .SS "\f(CW$view\fP\->\fBset_black_bg\fP ($black_bg)" .IX Subsection "$view->set_black_bg ($black_bg)" .IP "\(bu" 4 \&\f(CW$black_bg\fR (boolean) .PP If \s-1TRUE,\s0 the view uses a black background. If \s-1FALSE,\s0 the view uses the default (normally gray) background. .PP The default value is \s-1FALSE.\s0 .ie n .SS "list = $view\->\fBget_check_colors\fP" .el .SS "list = \f(CW$view\fP\->\fBget_check_colors\fP" .IX Subsection "list = $view->get_check_colors" Reads the two colors used to draw transparent parts of images with an alpha channel. Note that if the transp setting of the view is \&\s-1GTK_IMAGE_TRANSP_BACKGROUND\s0 or \s-1GTK_IMAGE_TRANSP_COLOR,\s0 then both colors will be equal. .ie n .SS "$view\->\fBdamage_pixels\fP ($rect)" .el .SS "\f(CW$view\fP\->\fBdamage_pixels\fP ($rect)" .IX Subsection "$view->damage_pixels ($rect)" .IP "\(bu" 4 \&\f(CW$rect\fR (Gtk2::Gdk::Rectangle) .PP Mark the pixels in the rectangle as damaged. That the pixels are damaged means that they have been modified and that the view must redraw them to ensure that the visible part of the image corresponds to the pixels in that image. Calling this method emits the ::pixbuf\-changed signal. .PP This method must be used when modifying the image data: .PP .Vb 4 \& // Drawing something cool in the area 20,20 \- 60,60 here... \& ... \& // And force an update \& $view\->damage_pixels (Gtk2::Gdk::Rectangle\->new(20, 20, 40, 40); .Ve .PP If the whole pixbuf has been modified then rect should be \s-1NULL\s0 to indicate that a total update is needed. .PP See also \fIgtk_image_view_set_pixbuf()\fR. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "view : a Gtk2::Gdk::Rectangle in image space coordinates to mark as damaged or \s-1NULL,\s0 to mark the whole pixbuf as damaged." 4 .IX Item "view : a Gtk2::Gdk::Rectangle in image space coordinates to mark as damaged or NULL, to mark the whole pixbuf as damaged." .PD .ie n .SS "rectangle = $view\->\fBget_draw_rect\fP" .el .SS "rectangle = \f(CW$view\fP\->\fBget_draw_rect\fP" .IX Subsection "rectangle = $view->get_draw_rect" Get the rectangle in the widget where the pixbuf is painted, or undef if the view is not allocated or has no pixbuf. .PP For example, if the widgets allocated size is 100, 100 and the pixbufs size is 50, 50 and the zoom factor is 1.0, then the pixbuf will be drawn centered on the widget. rect will then be (25,25)\-[50,50]. .PP This method is useful when converting from widget to image or zoom space coordinates. .ie n .SS "boolean = $view\->\fBget_fitting\fP" .el .SS "boolean = \f(CW$view\fP\->\fBget_fitting\fP" .IX Subsection "boolean = $view->get_fitting" Returns \s-1TRUE\s0 if the view fits the image, \s-1FALSE\s0 otherwise. .ie n .SS "$view\->\fBset_fitting\fP ($fitting)" .el .SS "\f(CW$view\fP\->\fBset_fitting\fP ($fitting)" .IX Subsection "$view->set_fitting ($fitting)" .IP "\(bu" 4 \&\f(CW$fitting\fR (boolean) .PP Sets whether to fit or not. If \s-1TRUE,\s0 then the view will adapt the zoom so that the whole pixbuf is visible. .PP Setting the fitting causes the widget to immediately repaint itself. .PP Fitting is by default \s-1TRUE.\s0 .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "fitting : whether to fit the image or not" 4 .IX Item "fitting : whether to fit the image or not" .PD .ie n .SS "rectangle = $view\->\fBimage_to_widget_rect\fP ($rect_in)" .el .SS "rectangle = \f(CW$view\fP\->\fBimage_to_widget_rect\fP ($rect_in)" .IX Subsection "rectangle = $view->image_to_widget_rect ($rect_in)" .IP "\(bu" 4 \&\f(CW$rect_in\fR (Gtk2::Gdk::Rectangle) .PP Converts a rectangle in image space coordinates to widget space coordinates. If the view is not realized, or if it contains no pixbuf, then the conversion was unsuccessful, \s-1FALSE\s0 is returned and rect_out is left unmodified. .PP Note that this function may return a rectangle that is not visible on the widget. .ie n .SS "interptype = $view\->\fBget_interpolation\fP" .el .SS "interptype = \f(CW$view\fP\->\fBget_interpolation\fP" .IX Subsection "interptype = $view->get_interpolation" Returns the current interpolation mode of the view. .ie n .SS "$view\->\fBset_interpolation\fP ($interp)" .el .SS "\f(CW$view\fP\->\fBset_interpolation\fP ($interp)" .IX Subsection "$view->set_interpolation ($interp)" .IP "\(bu" 4 \&\f(CW$interp\fR (Gtk2::Gdk::InterpType) .PP Sets the interpolation mode of how the view. \s-1GDK_INTERP_HYPER\s0 is the slowest, but produces the best results. \s-1GDK_INTERP_NEAREST\s0 is the fastest, but provides bad rendering quality. \s-1GDK_INTERP_BILINEAR\s0 is a good compromise. .PP Setting the interpolation mode causes the widget to immidiately repaint itself. .PP The default interpolation mode is \s-1GDK_INTERP_BILINEAR.\s0 .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "interp : The Gtk2::Gdk::InterpType to use. One of \s-1GDK_INTERP_NEAREST, GDK_INTERP_BILINEAR\s0 and \s-1GDK_INTERP_HYPER.\s0" 4 .IX Item "interp : The Gtk2::Gdk::InterpType to use. One of GDK_INTERP_NEAREST, GDK_INTERP_BILINEAR and GDK_INTERP_HYPER." .PD .SS "string = Gtk2::ImageView\->\fBlibrary_version\fP" .IX Subsection "string = Gtk2::ImageView->library_version" Returns the version of the underlying GtkImageView C library .ie n .SS "$view\->\fBset_offset\fP ($x, $y, $invalidate=FALSE)" .el .SS "\f(CW$view\fP\->\fBset_offset\fP ($x, \f(CW$y\fP, \f(CW$invalidate\fP=FALSE)" .IX Subsection "$view->set_offset ($x, $y, $invalidate=FALSE)" .IP "\(bu" 4 \&\f(CW$x\fR (double) .IP "\(bu" 4 \&\f(CW$y\fR (double) .IP "\(bu" 4 \&\f(CW$invalidate\fR (boolean) .PP Sets the offset of where in the image the GtkImageView should begin displaying image data. .PP The offset is clamped so that it will never cause the GtkImageView to display pixels outside the pixbuf. Setting this attribute causes the widget to repaint itself if it is realized. .PP If invalidate is \s-1TRUE,\s0 the views entire area will be invalidated instead of redrawn immidiately. The view is then queued for redraw, which means that additional operations can be performed on it before it is redrawn. .PP The difference can sometimes be important like when you are overlaying data and get flicker or artifacts when setting the offset. If that happens, setting invalidate to \s-1TRUE\s0 could fix the problem. See the source code to GtkImageToolSelector for an example. .PP Normally, invalidate should always be \s-1FALSE\s0 because it is much faster to repaint immidately than invalidating. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "x : X\-component of the offset in zoom space coordinates." 4 .IX Item "x : X-component of the offset in zoom space coordinates." .IP "y : Y\-component of the offset in zoom space coordinates." 4 .IX Item "y : Y-component of the offset in zoom space coordinates." .IP "invalidate : whether to invalidate the view or redraw immediately, default=FALSE." 4 .IX Item "invalidate : whether to invalidate the view or redraw immediately, default=FALSE." .PD .ie n .SS "pixbuf or undef = $view\->\fBget_pixbuf\fP" .el .SS "pixbuf or undef = \f(CW$view\fP\->\fBget_pixbuf\fP" .IX Subsection "pixbuf or undef = $view->get_pixbuf" Returns the pixbuf this view shows. .ie n .SS "$view\->\fBset_pixbuf\fP ($pixbuf, $reset_fit=TRUE)" .el .SS "\f(CW$view\fP\->\fBset_pixbuf\fP ($pixbuf, \f(CW$reset_fit\fP=TRUE)" .IX Subsection "$view->set_pixbuf ($pixbuf, $reset_fit=TRUE)" .IP "\(bu" 4 \&\f(CW$pixbuf\fR (Gtk2::Gdk::Pixbuf or undef) .IP "\(bu" 4 \&\f(CW$reset_fit\fR (boolean) .PP Sets the pixbuf to display, or \s-1NULL\s0 to not display any pixbuf. Normally, reset_fit should be \s-1TRUE\s0 which enables fitting. Which means that, initially, the whole pixbuf will be shown. .PP Sometimes, the fit mode should not be reset. For example, if GtkImageView is showing an animation, it would be bad to reset the fit mode for each new frame. The parameter should then be \s-1FALSE\s0 which leaves the fit mode of the view untouched. .PP This method should not be used if merely the contents of the pixbuf has changed. See \fIgtk_image_view_damage_pixels()\fR for that. .PP If reset_fit is \s-1TRUE,\s0 the zoom-changed signal is emitted, otherwise not. The pixbuf-changed signal is also emitted. .PP The default pixbuf is \s-1NULL.\s0 .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "pixbuf : The pixbuf to display." 4 .IX Item "pixbuf : The pixbuf to display." .IP "reset_fit : Whether to reset fitting or not." 4 .IX Item "reset_fit : Whether to reset fitting or not." .PD .ie n .SS "boolean = $view\->\fBget_show_cursor\fP" .el .SS "boolean = \f(CW$view\fP\->\fBget_show_cursor\fP" .IX Subsection "boolean = $view->get_show_cursor" Returns \s-1TRUE\s0 if the cursor is shown when the mouse is over the widget, otherwise \s-1FALSE.\s0 .ie n .SS "$view\->\fBset_show_cursor\fP ($show_cursor)" .el .SS "\f(CW$view\fP\->\fBset_show_cursor\fP ($show_cursor)" .IX Subsection "$view->set_show_cursor ($show_cursor)" .IP "\(bu" 4 \&\f(CW$show_cursor\fR (boolean) .PP Sets whether to show the mouse cursor when the mouse is over the widget or not. Hiding the cursor is useful when the widget is fullscreened. .PP The default value is \s-1TRUE.\s0 .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "show_cursor : whether to show the cursor or not" 4 .IX Item "show_cursor : whether to show the cursor or not" .PD .ie n .SS "boolean = $view\->\fBget_show_frame\fP" .el .SS "boolean = \f(CW$view\fP\->\fBget_show_frame\fP" .IX Subsection "boolean = $view->get_show_frame" Returns \s-1TRUE\s0 if a one pixel frame is drawn around the pixbuf, otherwise \s-1FALSE.\s0 .ie n .SS "$view\->\fBset_show_frame\fP ($show_frame)" .el .SS "\f(CW$view\fP\->\fBset_show_frame\fP ($show_frame)" .IX Subsection "$view->set_show_frame ($show_frame)" .IP "\(bu" 4 \&\f(CW$show_frame\fR (boolean) .PP Sets whether to draw a frame around the image or not. When \s-1TRUE,\s0 a one pixel wide frame is shown around the image. Setting this attribute causes the widget to immediately repaint itself. .PP The default value is \s-1TRUE.\s0 .ie n .SS "tool = $view\->\fBget_tool\fP" .el .SS "tool = \f(CW$view\fP\->\fBget_tool\fP" .IX Subsection "tool = $view->get_tool" Returns the currently bound image tool .ie n .SS "$view\->\fBset_tool\fP ($tool)" .el .SS "\f(CW$view\fP\->\fBset_tool\fP ($tool)" .IX Subsection "$view->set_tool ($tool)" .IP "\(bu" 4 \&\f(CW$tool\fR (Gtk2::ImageView::Tool) .PP Set the image tool to use. If the new tool is the same as the current tool, then nothing will be done. Otherwise \fIGtk2::ImageView::Tool::pixbuf_changed()\fR is called so that the tool has a chance to generate initial data for the pixbuf. .PP Setting the tool causes the widget to immediately repaint itself. .PP The default image tool is a Gtk2::ImageView::Tool::Dragger instance. See also Gtk2::ImageView::Tool. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "tool : The image tool to use (must not be \s-1NULL\s0)" 4 .IX Item "tool : The image tool to use (must not be NULL)" .PD .ie n .SS "$view\->\fBset_transp\fP ($transp, $transp_color=0x000000)" .el .SS "\f(CW$view\fP\->\fBset_transp\fP ($transp, \f(CW$transp_color\fP=0x000000)" .IX Subsection "$view->set_transp ($transp, $transp_color=0x000000)" .IP "\(bu" 4 \&\f(CW$transp\fR (Gtk2::ImageView::Transp) .IP "\(bu" 4 \&\f(CW$transp_color\fR (integer) .PP Sets how the view should draw transparent parts of images with an alpha channel. If transp is \s-1GTK_IMAGE_TRANSP_COLOR,\s0 the specified color will be used. Otherwise the transp_color argument is ignored. If it is \s-1GTK_IMAGE_TRANSP_BACKGROUND,\s0 the background color of the widget will be used. If it is \s-1GTK_IMAGE_TRANSP_GRID,\s0 then a grid with light and dark gray boxes will be drawn on the transparent parts. .PP Calling this method causes the widget to immediately repaint. It also causes the pixbuf-changed signal to be emitted. This is done so that other widgets (such as GtkImageNav) will have a chance to render a view of the pixbuf with the new transparency settings. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "transp : The Gtk2::ImageView::Transp to use when drawing transparent images, default \s-1GTK_IMAGE_TRANSP_GRID.\s0" 4 .IX Item "transp : The Gtk2::ImageView::Transp to use when drawing transparent images, default GTK_IMAGE_TRANSP_GRID." .IP "transp_color : Color to use when drawing transparent images, default 0x000000." 4 .IX Item "transp_color : Color to use when drawing transparent images, default 0x000000." .PD .ie n .SS "rectangle = $view\->\fBget_viewport\fP" .el .SS "rectangle = \f(CW$view\fP\->\fBget_viewport\fP" .IX Subsection "rectangle = $view->get_viewport" Returns a rectangle with the current viewport. If pixbuf is \s-1NULL\s0 or there is no viewport, undef is returned. .PP The current viewport is defined as the rectangle, in zoomspace coordinates as the area of the loaded pixbuf the Gtk2::ImageView is currently showing. .ie n .SS "double = $view\->\fBget_zoom\fP" .el .SS "double = \f(CW$view\fP\->\fBget_zoom\fP" .IX Subsection "double = $view->get_zoom" Get the current zoom factor of the view. .ie n .SS "$view\->\fBzoom_in\fP" .el .SS "\f(CW$view\fP\->\fBzoom_in\fP" .IX Subsection "$view->zoom_in" Zoom in the view one step. Calling this method causes the widget to immediately repaint itself. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .ie n .SS "$view\->\fBzoom_out\fP" .el .SS "\f(CW$view\fP\->\fBzoom_out\fP" .IX Subsection "$view->zoom_out" Zoom out the view one step. Calling this method causes the widget to immediately repaint itself. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .ie n .SS "$view\->\fBset_zoom\fP ($zoom)" .el .SS "\f(CW$view\fP\->\fBset_zoom\fP ($zoom)" .IX Subsection "$view->set_zoom ($zoom)" .PD 0 .IP "\(bu" 4 .PD \&\f(CW$zoom\fR (double) .PP Sets the zoom of the view. .PP Fitting is always disabled after this method has run. The zoom-changed signal is unconditionally emitted. .IP "view : a Gtk2::ImageView" 4 .IX Item "view : a Gtk2::ImageView" .PD 0 .IP "zoom : the new zoom factor" 4 .IX Item "zoom : the new zoom factor" .PD .SH "SIGNALS" .IX Header "SIGNALS" .IP "\fBset-zoom\fR (Gtk2::ImageView, double)" 4 .IX Item "set-zoom (Gtk2::ImageView, double)" .PD 0 .IP "\fBzoom-in\fR (Gtk2::ImageView)" 4 .IX Item "zoom-in (Gtk2::ImageView)" .IP "\fBzoom-out\fR (Gtk2::ImageView)" 4 .IX Item "zoom-out (Gtk2::ImageView)" .IP "\fBset-fitting\fR (Gtk2::ImageView, integer)" 4 .IX Item "set-fitting (Gtk2::ImageView, integer)" .IP "\fBscroll\fR (Gtk2::ImageView, Gtk2::ScrollType, Gtk2::ScrollType)" 4 .IX Item "scroll (Gtk2::ImageView, Gtk2::ScrollType, Gtk2::ScrollType)" .IP "\fBmouse-wheel-scroll\fR (Gtk2::ImageView, Gtk2::Gdk::ScrollDirection)" 4 .IX Item "mouse-wheel-scroll (Gtk2::ImageView, Gtk2::Gdk::ScrollDirection)" .IP "\fBzoom-changed\fR (Gtk2::ImageView)" 4 .IX Item "zoom-changed (Gtk2::ImageView)" .IP "\fBpixbuf-changed\fR (Gtk2::ImageView)" 4 .IX Item "pixbuf-changed (Gtk2::ImageView)" .IP "\fBset-scroll-adjustments\fR (Gtk2::ImageView, Gtk2::Adjustment, Gtk2::Adjustment)" 4 .IX Item "set-scroll-adjustments (Gtk2::ImageView, Gtk2::Adjustment, Gtk2::Adjustment)" .PD .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::Gdk::InterpType" .IX Subsection "enum Gtk2::Gdk::InterpType" .IP "\(bu" 4 \&'nearest' / '\s-1GDK_INTERP_NEAREST\s0' .IP "\(bu" 4 \&'tiles' / '\s-1GDK_INTERP_TILES\s0' .IP "\(bu" 4 \&'bilinear' / '\s-1GDK_INTERP_BILINEAR\s0' .IP "\(bu" 4 \&'hyper' / '\s-1GDK_INTERP_HYPER\s0' .SS "enum Gtk2::Gdk::ScrollDirection" .IX Subsection "enum Gtk2::Gdk::ScrollDirection" .IP "\(bu" 4 \&'up' / '\s-1GDK_SCROLL_UP\s0' .IP "\(bu" 4 \&'down' / '\s-1GDK_SCROLL_DOWN\s0' .IP "\(bu" 4 \&'left' / '\s-1GDK_SCROLL_LEFT\s0' .IP "\(bu" 4 \&'right' / '\s-1GDK_SCROLL_RIGHT\s0' .SS "enum Gtk2::ImageView::Transp" .IX Subsection "enum Gtk2::ImageView::Transp" .IP "\(bu" 4 \&'color' / '\s-1GTK_IMAGE_TRANSP_COLOR\s0' .IP "\(bu" 4 \&'background' / '\s-1GTK_IMAGE_TRANSP_BACKGROUND\s0' .IP "\(bu" 4 \&'grid' / '\s-1GTK_IMAGE_TRANSP_GRID\s0' .SS "enum Gtk2::ScrollType" .IX Subsection "enum Gtk2::ScrollType" .IP "\(bu" 4 \&'none' / '\s-1GTK_SCROLL_NONE\s0' .IP "\(bu" 4 \&'jump' / '\s-1GTK_SCROLL_JUMP\s0' .IP "\(bu" 4 \&'step\-backward' / '\s-1GTK_SCROLL_STEP_BACKWARD\s0' .IP "\(bu" 4 \&'step\-forward' / '\s-1GTK_SCROLL_STEP_FORWARD\s0' .IP "\(bu" 4 \&'page\-backward' / '\s-1GTK_SCROLL_PAGE_BACKWARD\s0' .IP "\(bu" 4 \&'page\-forward' / '\s-1GTK_SCROLL_PAGE_FORWARD\s0' .IP "\(bu" 4 \&'step\-up' / '\s-1GTK_SCROLL_STEP_UP\s0' .IP "\(bu" 4 \&'step\-down' / '\s-1GTK_SCROLL_STEP_DOWN\s0' .IP "\(bu" 4 \&'page\-up' / '\s-1GTK_SCROLL_PAGE_UP\s0' .IP "\(bu" 4 \&'page\-down' / '\s-1GTK_SCROLL_PAGE_DOWN\s0' .IP "\(bu" 4 \&'step\-left' / '\s-1GTK_SCROLL_STEP_LEFT\s0' .IP "\(bu" 4 \&'step\-right' / '\s-1GTK_SCROLL_STEP_RIGHT\s0' .IP "\(bu" 4 \&'page\-left' / '\s-1GTK_SCROLL_PAGE_LEFT\s0' .IP "\(bu" 4 \&'page\-right' / '\s-1GTK_SCROLL_PAGE_RIGHT\s0' .IP "\(bu" 4 \&'start' / '\s-1GTK_SCROLL_START\s0' .IP "\(bu" 4 \&'end' / '\s-1GTK_SCROLL_END\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" GtkImageView Reference Manual at http://trac.bjourne.webfactional.com/ .PP \&\fIperl\fR\|(1), \fIGlib\fR\|(3pm), \fIGtk2\fR\|(3pm), Gtk2::ImageViewer \- an alternative image viewer widget. .SH "AUTHOR" .IX Header "AUTHOR" Jeffrey Ratcliffe , with patches from muppet , Torsten Schoenfeld and Emanuele Bassi Kevin Ryde .PP The \s-1DESCRIPTION\s0 section of this page is adapted from the documentation of GtkImageView. .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright (c) 2007 \*(-- 2008 by Jeffrey Ratcliffe see \s-1AUTHORS\s0 for complete list of contributors .PP This library is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. .PP This library is distributed in the hope that it will be useful, but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of \&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE. \s0 See the \s-1GNU\s0 Library General Public License for more details. .PP You should have received a copy of the \s-1GNU\s0 Lesser General Public License along with this program. If not, see . .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2007 by Jeffrey Ratcliffe. .PP This software is licensed under the \s-1GPL\-3\s0; see Gtk2::ImageView for a full notice.