[−][src]Trait druid::widget::ScopeTransfer
A ScopeTransfer
knows how to synchronise input data with its counterpart
within a Scope
.
It is separate from the policy mainly to allow easy use of lenses to do
synchronisation, with a custom ScopePolicy
.
Associated Types
type In: Data
[src]
The type of data that comes in from the surrounding application or scope.
type State: Data
[src]
The type of data that the Scope will maintain internally.
Required methods
pub fn read_input(&self, state: &mut Self::State, inner: &Self::In)
[src]
Replace the input we have within our State with a new one from outside
pub fn write_back_input(&self, state: &Self::State, inner: &mut Self::In)
[src]
Take the modifications we have made and write them back to our input.