GimpDrawablePreview3LIBGIMP LibraryGimpDrawablePreviewA widget providing a preview of a GimpDrawable.Synopsis
GimpDrawablePreview;
GtkWidget* gimp_drawable_preview_new (GimpDrawable *drawable,
gboolean *toggle);
GimpDrawable* gimp_drawable_preview_get_drawable (GimpDrawablePreview *preview);
void gimp_drawable_preview_draw_region (GimpDrawablePreview *preview,
const GimpPixelRgn *region);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----GimpPreview
+----GimpScrolledPreview
+----GimpDrawablePreview
Implemented Interfaces
GimpDrawablePreview implements
AtkImplementorIface.Properties
"drawable" gpointer : Read / Write / Construct Only
Description
A widget providing a preview of a GimpDrawable.
DetailsGimpDrawablePreviewGimpDrawablePreviewtypedef struct _GimpDrawablePreview GimpDrawablePreview;gimp_drawable_preview_new ()gimp_drawable_preview_newGtkWidget* gimp_drawable_preview_new (GimpDrawable *drawable,
gboolean *toggle);
Creates a new GimpDrawablePreview widget for drawable. If
updating the preview takes considerable time, you will want to
store the state of the "Preview" check-button in the plug-in
data. For convenience you can pass a pointer to the gboolean as
toggle.drawable : a GimpDrawabletoggle : pointer to a gboolean variable to sync with the "Preview"
check-button or NULLReturns : A pointer to the new GimpDrawablePreview widget.
Since GIMP 2.2
gimp_drawable_preview_get_drawable ()gimp_drawable_preview_get_drawableGimpDrawable* gimp_drawable_preview_get_drawable (GimpDrawablePreview *preview);preview : a GimpDrawablePreview widget
Returns : the GimpDrawable that has been passed to
gimp_drawable_preview_new().
Since GIMP 2.2
gimp_drawable_preview_draw_region ()gimp_drawable_preview_draw_regionvoid gimp_drawable_preview_draw_region (GimpDrawablePreview *preview,
const GimpPixelRgn *region);preview : a GimpDrawablePreview widget
region : a GimpPixelRgnSince GIMP 2.2
Property DetailsThe "drawable" propertyGimpDrawablePreview:drawable "drawable" gpointer : Read / Write / Construct OnlySince GIMP 2.4