Top | ![]() |
![]() |
![]() |
![]() |
Functions
void | (*GOUndoBinaryFunc) () |
void | (*GOUndoUnaryFunc) () |
GOUndo * | go_undo_binary_new () |
GOUndo * | go_undo_combine () |
void | go_undo_group_add () |
GOUndoGroup * | go_undo_group_new () |
GOUndo * | go_undo_unary_new () |
void | go_undo_undo () |
void | go_undo_undo_with_data () |
Types and Values
struct | GOUndo |
struct | GOUndoBinary |
struct | GOUndoBinaryClass |
struct | GOUndoClass |
struct | GOUndoGroup |
struct | GOUndoGroupClass |
struct | GOUndoUnary |
struct | GOUndoUnaryClass |
Object Hierarchy
GObject ├── GOUndo │ ├── GOUndoBinary │ ├── GOUndoGroup │ ╰── GOUndoUnary ╰── GOUndo ├── GOUndoBinary ├── GOUndoGroup ╰── GOUndoUnary
Functions
go_undo_binary_new ()
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.)
go_undo_combine ()
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.
go_undo_group_add ()
void go_undo_group_add (GOUndoGroup *g
,GOUndo *u
);
This function adds u
to g
.
go_undo_group_new ()
GOUndoGroup *
go_undo_group_new (void
);
This function creates a new undo group for compounding undo objects.
go_undo_unary_new ()
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.)
go_undo_undo_with_data ()
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.
Types and Values
struct GOUndoClass
struct GOUndoClass { GObjectClass base; void (*undo) (GOUndo *u, gpointer data); };