Enum libreda_db::undo::LayoutUndoOp [−][src]
pub enum LayoutUndoOp<T: LayoutBase> {
HierarchyOp(HierarchyUndoOp<T>),
SetDbu(T::Coord),
CreateLayer(T::LayerId),
SetLayerName(T::LayerId, Option<T::NameType>),
InsertShape(T::ShapeId),
RemoveShape {
parent_cell: T::CellId,
layer: T::LayerId,
geometry: Geometry<T::Coord>,
},
ReplaceShape(T::ShapeId, Geometry<T::Coord>),
SetTransform(T::CellInstId, SimpleTransform<T::Coord>),
}Expand description
Undo operation for LayoutEdit operations.
Variants
HierarchyOp(HierarchyUndoOp<T>)Undo an operation on the cell hierarchy.
Tuple Fields of HierarchyOp
0: HierarchyUndoOp<T>SetDbu(T::Coord)Store previous dbu.
Tuple Fields of SetDbu
0: T::CoordCreateLayer(T::LayerId)Store ID of the created layer.
Tuple Fields of CreateLayer
0: T::LayerIdStore previous layer name.
InsertShape(T::ShapeId)Store id of created shape.
Tuple Fields of InsertShape
0: T::ShapeIdStore the geometry of the previous shape.
Fields of RemoveShape
Store the old geometry of the shape.
SetTransform(T::CellInstId, SimpleTransform<T::Coord>)Store the old transform.
Tuple Fields of SetTransform
0: T::CellInstId1: SimpleTransform<T::Coord>Trait Implementations
Performs the conversion.