|
Uranium
Application Framework
|
Operation subclass that will scale a node to fit within the bounds provided. More...
Public Member Functions | |
| __init__ (self, node, bounds) | |
| Creates a new operation that scales a nodes to the bounds. | |
| undo (self) | |
| Undoes the scale to bounds, restoring the old scale. | |
| redo (self) | |
| Re-applies the scale to bounds after it has been undone. | |
Public Member Functions inherited from UM.Operations.Operation.Operation | |
| mergeWith (self, other) | |
| None | push (self) |
Protected Attributes | |
| _node | |
| _old_scale | |
| _new_scale | |
Protected Attributes inherited from UM.Operations.Operation.Operation | |
| _timestamp | |
| _always_merge | |
Operation subclass that will scale a node to fit within the bounds provided.
| 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. |
Reimplemented from UM.Operations.Operation.Operation.
| UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.redo | ( | self | ) |
Re-applies the scale to bounds after it has been undone.
Reimplemented from UM.Operations.Operation.Operation.
| UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.undo | ( | self | ) |
Undoes the scale to bounds, restoring the old scale.
Reimplemented from UM.Operations.Operation.Operation.