Struct cursive::views::Layer
[−]
[src]
pub struct Layer<T: View> { /* fields omitted */ }
Wrapper view that fills the background.
Used as layer in the StackView
.
Methods
impl<T: View> Layer<T>
[src]
fn new(view: T) -> Self
Wraps the given view.
Trait Implementations
impl<T: View> ViewWrapper for Layer<T>
[src]
type V = T
Type that this view wraps.
fn get_view(&self) -> &Self::V
Get an immutable reference to the wrapped view.
fn get_view_mut(&mut self) -> &mut Self::V
Get a mutable reference to the wrapped view.
fn wrap_draw(&self, printer: &Printer)
Wraps the draw
method.
fn wrap_required_size(&mut self, req: Vec2) -> Vec2
Wraps the required_size
method.
fn wrap_on_event(&mut self, ch: Event) -> EventResult
Wraps the on_event
method.
fn wrap_layout(&mut self, size: Vec2)
Wraps the layout
method.
fn wrap_take_focus(&mut self, source: Direction) -> bool
Wraps the take_focus
method.
fn wrap_find_any(&mut self, selector: &Selector) -> Option<&mut Any>
Wraps the find
method.
fn wrap_needs_relayout(&self) -> bool
Wraps the needs_relayout
method.