Scenic.Script.pop_push_state
You're seeing just the function
pop_push_state
, go back to Scenic.Script module for more information.
Specs
Reverts the style/transform state of the script then immediately pushes it again.
pop_push_state/1
is for when you have made changes that you want to revert, but then
know you are going to make more changes that you revert again. This is functionally
equivalent to calling pop_state/1
followed immediately by push_state/1
, except that
it is done as a single operation in the script instead of two. This saves drawtime
compute and makes the script smaller. Any adjacent pop/push pairs in the script will
be converted to pop_push in the optimization phase of the finish/1
function.
pop_push_state/1
must be preceded with either push_state/1
and followed by either
pop_state/1
or another pop_push_state/1