Enum libreda_db::undo::LayoutUndoOp
source · 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.
SetDbu(T::Coord)
Store previous dbu.
CreateLayer(T::LayerId)
Store ID of the created layer.
SetLayerName(T::LayerId, Option<T::NameType>)
Store previous layer name.
InsertShape(T::ShapeId)
Store id of created shape.
RemoveShape
Fields
Store the geometry of the previous shape.
ReplaceShape(T::ShapeId, Geometry<T::Coord>)
Store the old geometry of the shape.
SetTransform(T::CellInstId, SimpleTransform<T::Coord>)
Store the old transform.
Trait Implementations§
source§impl<T: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
impl<T: LayoutBase> From<HierarchyUndoOp<T>> for LayoutUndoOp<T>
source§fn from(op: HierarchyUndoOp<T>) -> Self
fn from(op: HierarchyUndoOp<T>) -> Self
Converts to this type from the input type.
source§impl<T: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
impl<T: L2NBase> From<LayoutUndoOp<T>> for L2NUndoOp<T>
source§fn from(op: LayoutUndoOp<T>) -> Self
fn from(op: LayoutUndoOp<T>) -> Self
Converts to this type from the input type.