Uranium
Application Framework
|
Operation subclass that will scale a node to fit within the bounds provided. More...
Public Member Functions | |
def | __init__ (self, node, bounds) |
Creates a new operation that scales a nodes to the bounds. More... | |
def | undo (self) |
Undoes the scale to bounds, restoring the old scale. More... | |
def | redo (self) |
Re-applies the scale to bounds after it has been undone. More... | |
![]() | |
def | __init__ (self) |
def | mergeWith (self, other) |
Perform operation merging. More... | |
def | push (self) |
Push the operation onto the stack. More... | |
Operation subclass that will scale a node to fit within the bounds provided.
def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.__init__ | ( | self, | |
node, | |||
bounds | |||
) |
Creates a new operation that scales a nodes to the bounds.
node | The node to scale to the bounds. |
bounds | The bounding box to scale the node to. |
def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.redo | ( | self | ) |
Re-applies the scale to bounds after it has been undone.
Reimplemented from UM.Operations.Operation.Operation.
def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.undo | ( | self | ) |
Undoes the scale to bounds, restoring the old scale.
Reimplemented from UM.Operations.Operation.Operation.