| Top |
| GtkWidget * | gimp_zoom_preview_new_from_drawable () |
| GtkWidget * | gimp_zoom_preview_new_with_model_from_drawable () |
| guchar * | gimp_zoom_preview_get_source () |
| GimpDrawable * | gimp_zoom_preview_get_drawable () |
| gdouble | gimp_zoom_preview_get_factor () |
| GimpZoomModel * | gimp_zoom_preview_get_model () |
| GimpDrawable * | drawable | Read / Write / Construct Only |
| GimpZoomModel * | model | Read / Write / Construct Only |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBox
╰── GimpPreview
╰── GimpScrolledPreview
╰── GimpZoomPreview
GimpZoomPreview implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget *
gimp_zoom_preview_new_from_drawable (GimpDrawable *drawable);
Creates a new GimpZoomPreview widget for drawable
.
Since: 3.0
GtkWidget * gimp_zoom_preview_new_with_model_from_drawable (GimpDrawable *drawable,GimpZoomModel *model);
Creates a new GimpZoomPreview widget for drawable
using the
given model
.
This variant of gimp_zoom_preview_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.
Since: 2.10
guchar * gimp_zoom_preview_get_source (GimpZoomPreview *preview,gint *width,gint *height,gint *bpp);
Returns the scaled image data of the part of the drawable the GimpZoomPreview is currently showing, as a newly allocated array of guchar. This function also allow to get the current width, height and bpp of the GimpZoomPreview.
preview |
a GimpZoomPreview widget |
|
width |
a pointer to an int where the current width of the zoom widget will be put. |
[out] |
height |
a pointer to an int where the current width of the zoom widget will be put. |
[out] |
bpp |
return location for the number of bytes per pixel. |
[out] |
newly allocated data that should be
released using g_free() when it is not any longer needed.
[transfer full][array]
Since: 2.4
GimpDrawable *
gimp_zoom_preview_get_drawable (GimpZoomPreview *preview);
Returns the drawable the GimpZoomPreview is attached to.
Since: 3.0
gdouble
gimp_zoom_preview_get_factor (GimpZoomPreview *preview);
Returns the zoom factor the preview is currently using.
Since: 2.4
GimpZoomModel *
gimp_zoom_preview_get_model (GimpZoomPreview *preview);
Returns the GimpZoomModel the preview is using.
Since: 2.4
“drawable” property“drawable” GimpDrawable *
The drawable this preview is attached to.
Owner: GimpZoomPreview
Flags: Read / Write / Construct Only
“model” property“model” GimpZoomModel *
The GimpZoomModel used by this GimpZoomPreview.
Owner: GimpZoomPreview
Flags: Read / Write / Construct Only
Since: 2.4