diff --git a/druid/src/widget/lens_wrap.rs b/druid/src/widget/lens_wrap.rs index e85dd6bdee..1f3ea6ed89 100644 --- a/druid/src/widget/lens_wrap.rs +++ b/druid/src/widget/lens_wrap.rs @@ -69,6 +69,16 @@ impl LensWrap { phantom_t: Default::default(), } } + + /// Get a reference to the lens. + pub fn lens(&self) -> &L { + &self.lens + } + + /// Get a mutable reference to the lens. + pub fn lens_mut(&mut self) -> &mut L { + &mut self.lens + } } impl Widget for LensWrap