diff --git a/src/views/enableable_view.rs b/src/views/enableable_view.rs index e3edb8e..922dbab 100644 --- a/src/views/enableable_view.rs +++ b/src/views/enableable_view.rs @@ -43,6 +43,7 @@ impl EnableableView { } impl_enabled!(self.enabled); + inner_getters!(self.view: V); } impl ViewWrapper for EnableableView { diff --git a/src/views/padded_view.rs b/src/views/padded_view.rs index c80b22a..7fb6821 100644 --- a/src/views/padded_view.rs +++ b/src/views/padded_view.rs @@ -25,8 +25,6 @@ pub struct PaddedView { } impl PaddedView { - inner_getters!(self.view: V); - /// Wraps `view` in a new `PaddedView` with the given margins. pub fn new>(margins: M, view: V) -> Self { let margins = margins.into(); @@ -38,6 +36,8 @@ impl PaddedView { // TODO: invalidate? self.margins = margins.into(); } + + inner_getters!(self.view: V); } impl ViewWrapper for PaddedView { diff --git a/src/views/panel.rs b/src/views/panel.rs index 3476458..4a58102 100644 --- a/src/views/panel.rs +++ b/src/views/panel.rs @@ -35,8 +35,6 @@ impl Panel { } } - 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 Panel { fn invalidate(&mut self) { self.invalidated = true; } + + inner_getters!(self.view: V); } impl ViewWrapper for Panel {