GimpUndo

GimpUndo

Synopsis

                    GimpUndo;
                    GimpUndoAccumulator;
void                gimp_undo_pop                       (GimpUndo *undo,
                                                         GimpUndoMode undo_mode,
                                                         GimpUndoAccumulator *accum);
void                gimp_undo_free                      (GimpUndo *undo,
                                                         GimpUndoMode undo_mode);
void                gimp_undo_create_preview            (GimpUndo *undo,
                                                         GimpContext *context,
                                                         gboolean create_now);
void                gimp_undo_refresh_preview           (GimpUndo *undo,
                                                         GimpContext *context);
const gchar *       gimp_undo_type_to_name              (GimpUndoType type);
gboolean            gimp_undo_is_weak                   (GimpUndo *undo);
gint                gimp_undo_get_age                   (GimpUndo *undo);
void                gimp_undo_reset_age                 (GimpUndo *undo);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpUndo
                     +----GimpItemUndo
                     +----GimpForegroundSelectToolUndo
                     +----GimpGuideUndo
                     +----GimpImageUndo
                     +----GimpPaintCoreUndo
                     +----GimpSamplePointUndo
                     +----GimpTransformToolUndo
                     +----GimpUndoStack

Implemented Interfaces

GimpUndo implements GimpConfigInterface.

Properties

  "dirty-mask"               GimpDirtyMask         : Read / Write / Construct Only
  "image"                    GimpImage*            : Read / Write / Construct Only
  "time"                     guint                 : Read / Write
  "undo-type"                GimpUndoType          : Read / Write / Construct Only

Signals

  "free"                                           : Run First
  "pop"                                            : Run First

Description

Details

GimpUndo

typedef struct _GimpUndo GimpUndo;


GimpUndoAccumulator

typedef struct {
  gboolean mode_changed;

  gboolean size_changed;
  gint     previous_origin_x;
  gint     previous_origin_y;
  gint     previous_width;
  gint     previous_height;

  gboolean resolution_changed;

  gboolean unit_changed;
} GimpUndoAccumulator;


gimp_undo_pop ()

void                gimp_undo_pop                       (GimpUndo *undo,
                                                         GimpUndoMode undo_mode,
                                                         GimpUndoAccumulator *accum);


gimp_undo_free ()

void                gimp_undo_free                      (GimpUndo *undo,
                                                         GimpUndoMode undo_mode);


gimp_undo_create_preview ()

void                gimp_undo_create_preview            (GimpUndo *undo,
                                                         GimpContext *context,
                                                         gboolean create_now);


gimp_undo_refresh_preview ()

void                gimp_undo_refresh_preview           (GimpUndo *undo,
                                                         GimpContext *context);


gimp_undo_type_to_name ()

const gchar *       gimp_undo_type_to_name              (GimpUndoType type);


gimp_undo_is_weak ()

gboolean            gimp_undo_is_weak                   (GimpUndo *undo);


gimp_undo_get_age ()

gint                gimp_undo_get_age                   (GimpUndo *undo);

Returns :

the time in seconds since this undo item was created

gimp_undo_reset_age ()

void                gimp_undo_reset_age                 (GimpUndo *undo);

Changes the creation time of this undo item to the current time.

Property Details

The "dirty-mask" property

  "dirty-mask"               GimpDirtyMask         : Read / Write / Construct Only


The "image" property

  "image"                    GimpImage*            : Read / Write / Construct Only


The "time" property

  "time"                     guint                 : Read / Write

Default value: 0


The "undo-type" property

  "undo-type"                GimpUndoType          : Read / Write / Construct Only

Default value: GIMP_UNDO_GROUP_NONE

Signal Details

The "free" signal

void                user_function                      (GimpUndo    *gimpundo,
                                                        GimpUndoMode arg1,
                                                        gpointer     user_data)      : Run First

gimpundo :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "pop" signal

void                user_function                      (GimpUndo    *gimpundo,
                                                        GimpUndoMode arg1,
                                                        gpointer     arg2,
                                                        gpointer     user_data)      : Run First

gimpundo :

the object which received the signal.

user_data :

user data set when the signal handler was connected.