Struct cursive::prelude::FullView
[−]
[src]
pub struct FullView<T: View> { // some fields omitted }
Simple wrapper view that asks for all the space it can get.
Examples
let view = FullView::new(TextView::new("Big box for little text!"));
Methods
impl<T: View> FullView<T>
[src]
fn new(view: T) -> Self
Wraps the given view into a new FullView.
It will always take the entire space available.
fn full_width(view: T) -> Self
Creates a new wrapper around view
with full width.
It will always take the maximum width available.
fn full_height(view: T) -> Self
Creates a new wrapper around view
with full height.
It will always take the maximum height available.
Trait Implementations
impl<T: View> ViewWrapper for FullView<T>
[src]
fn get_view(&self) -> &View
Get an immutable reference to the wrapped view.
fn get_view_mut(&mut self) -> &mut View
Get a mutable reference to the wrapped view.
fn wrap_get_min_size(&mut self, req: Vec2) -> Vec2
Wraps the get_min_size
method.
fn wrap_draw(&self, printer: &Printer)
Wraps the draw
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(&mut self, selector: &Selector) -> Option<&mut Any>
Wraps the find
method.
fn wrap_needs_relayout(&self) -> bool
Wraps the needs_relayout
method.