| Goffice Reference Manual | ||||
|---|---|---|---|---|
GOUndo;
void go_undo_undo (GOUndo *u);
void go_undo_undo_with_data (GOUndo *u,
gpointer data);
GOUndo* go_undo_combine (GOUndo *a,
GOUndo *b);
#define GO_TYPE_UNDO_GROUP
#define GO_UNDO_GROUP (o)
#define GO_IS_UNDO_GROUP (o)
GType go_undo_group_get_type (void);
GOUndoGroup;
GOUndoGroup* go_undo_group_new (void);
void go_undo_group_add (GOUndoGroup *g,
GOUndo *u);
#define GO_TYPE_UNDO_BINARY
#define GO_UNDO_BINARY (o)
#define GO_IS_UNDO_BINARY (o)
GType go_undo_binary_get_type (void);
void (*GOUndoBinaryFunc) (gpointer a,
gpointer b,
gpointer data);
GOUndoBinary;
GOUndo* go_undo_binary_new (gpointer a,
gpointer b,
GOUndoBinaryFunc undo,
GFreeFunc fa,
GFreeFunc fb);
#define GO_TYPE_UNDO_UNARY
#define GO_UNDO_UNARY (o)
#define GO_IS_UNDO_UNARY (o)
GType go_undo_unary_get_type (void);
void (*GOUndoUnaryFunc) (gpointer a,
gpointer data);
GOUndoUnary;
GOUndo* go_undo_unary_new (gpointer a,
GOUndoUnaryFunc undo,
GFreeFunc fa);
GOUndo* go_undo_combine (GOUndo *a, GOUndo *b);
This function takes ownership of the argument references and gives ownership of the result to the caller. Either argument may be NULL in which case the other is returned.
|
optional first undo operation |
|
optional last undo operation |
Returns : |
the combination of two undo operations. |
#define GO_UNDO_GROUP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_UNDO_GROUP, GOUndoGroup))
|
#define GO_IS_UNDO_GROUP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_UNDO_GROUP))
|
#define GO_UNDO_BINARY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_UNDO_BINARY, GOUndoBinary))
|
#define GO_IS_UNDO_BINARY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_UNDO_BINARY))
|
void (*GOUndoBinaryFunc) (gpointer a,
gpointer b,
gpointer data);
|
|
|
|
|
typedef struct {
GOUndo base;
gpointer a, b;
GOUndoBinaryFunc undo;
GFreeFunc disposea;
GFreeFunc disposeb;
} GOUndoBinary;
GOUndo* go_undo_binary_new (gpointer a, gpointer b, GOUndoBinaryFunc undo, GFreeFunc fa, GFreeFunc fb);
|
|
|
|
|
|
|
|
|
|
Returns : |
#define GO_UNDO_UNARY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_UNDO_UNARY, GOUndoUnary))
|
#define GO_IS_UNDO_UNARY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_UNDO_UNARY))
|
typedef struct {
GOUndo base;
gpointer a;
GOUndoUnaryFunc undo;
GFreeFunc disposea;
} GOUndoUnary;
GOUndo* go_undo_unary_new (gpointer a, GOUndoUnaryFunc undo, GFreeFunc fa);
|
|
|
|
|
|
Returns : |