Add missing get_inner to EnableableView

This commit is contained in:
Alexandre Bury 2019-10-25 19:53:43 -07:00
parent 884796fb02
commit a708e99ba6
3 changed files with 5 additions and 4 deletions

View File

@ -43,6 +43,7 @@ impl<V> EnableableView<V> {
}
impl_enabled!(self.enabled);
inner_getters!(self.view: V);
}
impl<V: View> ViewWrapper for EnableableView<V> {

View File

@ -25,8 +25,6 @@ pub struct PaddedView<V> {
}
impl<V: View> PaddedView<V> {
inner_getters!(self.view: V);
/// Wraps `view` in a new `PaddedView` with the given margins.
pub fn new<M: Into<Margins>>(margins: M, view: V) -> Self {
let margins = margins.into();
@ -38,6 +36,8 @@ impl<V: View> PaddedView<V> {
// TODO: invalidate?
self.margins = margins.into();
}
inner_getters!(self.view: V);
}
impl<V: View> ViewWrapper for PaddedView<V> {

View File

@ -35,8 +35,6 @@ impl<V: View> Panel<V> {
}
}
inner_getters!(self.view: V);
/// Sets the title of the dialog.
///
/// If not empty, it will be visible at the top.
@ -88,6 +86,8 @@ impl<V: View> Panel<V> {
fn invalidate(&mut self) {
self.invalidated = true;
}
inner_getters!(self.view: V);
}
impl<V: View> ViewWrapper for Panel<V> {