Skip to main content

insert_frame

Function insert_frame 

Source
pub fn insert_frame(
    db_context: &DbContext,
    event_hub: &Arc<EventHub>,
    undo_redo_manager: &mut UndoRedoManager,
    position: i64,
) -> Result<InsertFrameResult>
Expand description

Insert a sub-frame at position using entity controllers.

The new frame contains one empty block and is registered in the document’s frames collection.