Top |
GtkWidget * | gimp_zoom_preview_new () |
GtkWidget * | gimp_zoom_preview_new_from_drawable_id () |
GtkWidget * | gimp_zoom_preview_new_with_model_from_drawable_id () |
GtkWidget * | gimp_zoom_preview_new_with_model () |
guchar * | gimp_zoom_preview_get_source () |
GimpDrawable * | gimp_zoom_preview_get_drawable () |
gint32 | gimp_zoom_preview_get_drawable_id () |
gdouble | gimp_zoom_preview_get_factor () |
GimpZoomModel * | gimp_zoom_preview_get_model () |
gpointer | drawable | Read / Write / Construct Only |
int | drawable-id | Read / Write / Construct Only |
GimpZoomModel * | model | Read / Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpPreview ╰── GimpScrolledPreview ╰── GimpZoomPreview
GimpZoomPreview implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget *
gimp_zoom_preview_new (GimpDrawable *drawable
);
gimp_zoom_preview_new
has been deprecated since version 2.10 and should not be used in newly-written code.
Use gimp_zoom_preview_new_from_drawable_id()
instead.
Creates a new GimpZoomPreview widget for drawable
.
Since: 2.4
GtkWidget *
gimp_zoom_preview_new_from_drawable_id
(gint32 drawable_ID
);
Creates a new GimpZoomPreview widget for drawable_ID
.
Since: 2.10
GtkWidget * gimp_zoom_preview_new_with_model_from_drawable_id (gint32 drawable_ID
,GimpZoomModel *model
);
Creates a new GimpZoomPreview widget for drawable_ID
using the
given model
.
This variant of gimp_zoom_preview_new_from_drawable_id()
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
GtkWidget * gimp_zoom_preview_new_with_model (GimpDrawable *drawable
,GimpZoomModel *model
);
gimp_zoom_preview_new_with_model
has been deprecated since version 2.10 and should not be used in newly-written code.
Use gimp_zoom_preview_new_with_model_from_drawable_id()
instead.
Creates a new GimpZoomPreview widget for drawable
using the
given model
.
This variant of gimp_zoom_preview_new()
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.4
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. |
|
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 |
newly allocated data that should be released using g_free()
when it is not any longer needed
Since: 2.4
GimpDrawable *
gimp_zoom_preview_get_drawable (GimpZoomPreview *preview
);
gimp_zoom_preview_get_drawable
has been deprecated since version 2.10 and should not be used in newly-written code.
Use gimp_zoom_preview_get_drawable_id()
instead.
Returns the GimpDrawable the GimpZoomPreview is attached to.
Since: 2.4
gint32
gimp_zoom_preview_get_drawable_id (GimpZoomPreview *preview
);
Returns the drawable_ID the GimpZoomPreview is attached to.
Since: 2.10
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” gpointer
The drawable the GimpZoomPreview is attached to.
GimpZoomPreview:drawable
is deprecated and should not be used in newly-written code.
use the drawable-id property instead.
Owner: GimpZoomPreview
Flags: Read / Write / Construct Only
Since: 2.4
“drawable-id”
property “drawable-id” int
The drawable the GimpZoomPreview is attached to.
Owner: GimpZoomPreview
Flags: Read / Write / Construct Only
Allowed values: >= -1
Default value: -1
Since: 2.10
“model”
property“model” GimpZoomModel *
The GimpZoomModel used by this GimpZoomPreview.
Owner: GimpZoomPreview
Flags: Read / Write / Construct Only
Since: 2.4