mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +00:00
Add missing get_inner to EnableableView
This commit is contained in:
parent
884796fb02
commit
a708e99ba6
@ -43,6 +43,7 @@ impl<V> EnableableView<V> {
|
||||
}
|
||||
|
||||
impl_enabled!(self.enabled);
|
||||
inner_getters!(self.view: V);
|
||||
}
|
||||
|
||||
impl<V: View> ViewWrapper for EnableableView<V> {
|
||||
|
@ -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> {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user