Function yrs::yundo_manager
source ยท #[no_mangle]
pub unsafe extern "C" fn yundo_manager(
doc: *const Doc,
options: *const YUndoManagerOptions,
) -> *mut YUndoManager
Expand description
Creates a new instance of undo manager bound to a current doc
. It can be used to track
specific shared refs via yundo_manager_add_scope
and updates coming from specific origin
- like ability to undo/redo operations originating only at the local peer - by using
yundo_manager_add_origin
.
This object can be deallocated via yundo_manager_destroy
.