diff --git a/CHANGELOG.md b/CHANGELOG.md index 8266b21..de90e83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## New * `LinearLayout` now implements `ViewGroup` +* `LinearLayout::inner{_mut}` 0.3.2 (2023-08-23) ================== diff --git a/src/layout/linear/mod.rs b/src/layout/linear/mod.rs index 9bbd408..d82be9e 100644 --- a/src/layout/linear/mod.rs +++ b/src/layout/linear/mod.rs @@ -311,6 +311,18 @@ where self } + + /// Returns a reference to the contained views. + #[inline] + pub fn inner(&self) -> &VG { + &self.views + } + + /// Returns a mutable reference to the contained views. + #[inline] + pub fn inner_mut(&mut self) -> &mut VG { + &mut self.views + } } impl View for LinearLayout