GimpUi.ZoomPreview¶
- Subclasses:
 None
Methods¶
- Inherited:
 GimpUi.ScrolledPreview (5), GimpUi.Preview (20), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
The drawable this preview is attached to  | 
||
r/w/co  | 
The zoom preview’s   | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 GimpUi.Preview (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Fields¶
- Inherited:
 GimpUi.Preview (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Class Details¶
- class GimpUi.ZoomPreview(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A drawable preview with zooming capabilities.
- classmethod new_from_drawable(drawable)¶
 - Parameters:
 drawable (
Gimp.Drawable) – a drawable- Returns:
 a new
GimpUi.ZoomPreview.- Return type:
 
Creates a new
GimpUi.ZoomPreviewwidget for drawable.New in version 3.0.
- classmethod new_with_model_from_drawable(drawable, model)¶
 - Parameters:
 drawable (
Gimp.Drawable) – aGimp.Drawablemodel (
GimpUi.ZoomModel) – aGimpUi.ZoomModel
- Returns:
 a new
GimpUi.ZoomPreview.- Return type:
 
Creates a new
GimpUi.ZoomPreviewwidget for drawable using the given model.This variant of
GimpUi.ZoomPreview.new_from_drawable() allows you to create a preview using an existing zoom model. This may be useful if for example you want to have two zoom previews that keep their zoom factor in sync.New in version 2.10.
- get_drawable()¶
 - Returns:
 the drawable that was passed to
GimpUi.ZoomPreview.new_from_drawable().- Return type:
 
Returns the drawable the
GimpUi.ZoomPreviewis attached to.New in version 3.0.
- get_factor()¶
 - Returns:
 the current zoom factor
- Return type:
 
Returns the zoom factor the preview is currently using.
New in version 2.4.
- get_model()¶
 - Returns:
 a pointer to the
GimpUi.ZoomModelowned by the self- Return type:
 
Returns the
GimpUi.ZoomModelthe preview is using.New in version 2.4.
- get_source()¶
 - Returns:
 newly allocated data that should be released using
GLib.free() when it is not any longer needed- width:
 a pointer to an int where the current width of the zoom widget will be put.
- height:
 a pointer to an int where the current width of the zoom widget will be put.
- bpp:
 return location for the number of bytes per pixel
- Return type:
 
Returns the scaled image data of the part of the drawable the
GimpUi.ZoomPreviewis currently showing, as a newly allocated array of guchar. This function also allow to get the current width, height and bpp of theGimpUi.ZoomPreview.New in version 2.4.
Property Details¶
- GimpUi.ZoomPreview.props.drawable¶
 - Name:
 drawable- Type:
 - Default Value:
 - Flags:
 
The drawable this preview is attached to
- GimpUi.ZoomPreview.props.model¶
 - Name:
 model- Type:
 - Default Value:
 - Flags:
 
The
GimpUi.ZoomModelused by thisGimpUi.ZoomPreview.New in version 2.4.