GimpDrawablePreview

GimpDrawablePreview —

Synopsis




struct      GimpDrawablePreview;
GtkWidget*  gimp_drawable_preview_new       (GimpDrawable *drawable,
                                             gboolean *toggle);
void        gimp_drawable_preview_draw      (GimpDrawablePreview *preview,
                                             guchar *buf);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkTable
                           +----GimpPreview
                                 +----GimpDrawablePreview

Implemented Interfaces

GimpDrawablePreview implements AtkImplementorIface.

Description

Details

struct GimpDrawablePreview

struct GimpDrawablePreview;


gimp_drawable_preview_new ()

GtkWidget*  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 GimpDrawable
toggle : pointer to a gboolean variable to sync with the "Preview" check-button or NULL
Returns : A pointer to the new GimpDrawablePreview widget.

Since GIMP 2.2


gimp_drawable_preview_draw ()

void        gimp_drawable_preview_draw      (GimpDrawablePreview *preview,
                                             guchar *buf);

preview : a GimpDrawablePreview widget
buf :

Since GIMP 2.2