Top | ![]() |
![]() |
![]() |
![]() |
GType | go_undo_binary_get_type () |
GOUndo * | go_undo_binary_new () |
GOUndo * | go_undo_combine () |
GType | go_undo_get_type () |
void | go_undo_group_add () |
GType | go_undo_group_get_type () |
GOUndoGroup * | go_undo_group_new () |
GType | go_undo_unary_get_type () |
GOUndo * | go_undo_unary_new () |
void | go_undo_undo () |
void | go_undo_undo_with_data () |
GOUndo * go_undo_binary_new (gpointer a
,gpointer b
,GOUndoBinaryFunc undo
,GFreeFunc fa
,GFreeFunc fb
);
This function creates a new undo object for undo operations of two arguments. (In addition, an undo-time argument is added for context.)
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.
void go_undo_group_add (GOUndoGroup *g
,GOUndo *u
);
This function adds u
to g
.
GOUndoGroup *
go_undo_group_new (void
);
This function creates a new undo group for compounding undo objects.
GOUndo * go_undo_unary_new (gpointer a
,GOUndoUnaryFunc undo
,GFreeFunc fa
);
This function creates a new undo object for undo operations of one argument. (In addition, an undo-time argument is added for context.)
void go_undo_undo_with_data (GOUndo *u
,gpointer data
);
Execute the stored undo operation. data
is supplied to the undo
operation as an extra argument. It is meant not to affect the undo
operation in any way, but rather supply a context through which
progress and errors can be reported.