[][src]Struct cursive_multiplex::MuxBuilder

pub struct MuxBuilder { /* fields omitted */ }

Builder for the multiplexer, default values for actions are set, but can be modified by calling the corresponding methods of the builder instance.

let builder = cursive_multiplex::MuxBuilder::new();

Methods

impl MuxBuilder[src]

pub fn new() -> Self[src]

pub fn build<T>(&self, v: T) -> (Mux, Id) where
    T: View
[src]

Initialization for a new mutliplexer view, view to be provided is the first view to be displayed. It's best to use the main view you want to use here later on, but if neccessary views can also be switched. Returned is a tuple consisting of the multiplexer view itself and the id assigend to the passed view.

Example

let builder = cursive_multiplex::MuxBuilder::new();
let (mut mux, node1) = builder.build(cursive::views::DummyView);

pub fn focus_up(&mut self, evt: Event) -> &mut Self[src]

pub fn focus_down(&mut self, evt: Event) -> &mut Self[src]

pub fn focus_left(&mut self, evt: Event) -> &mut Self[src]

pub fn focus_right(&mut self, evt: Event) -> &mut Self[src]

pub fn resize_left(&mut self, evt: Event) -> &mut Self[src]

pub fn resize_right(&mut self, evt: Event) -> &mut Self[src]

pub fn resize_up(&mut self, evt: Event) -> &mut Self[src]

pub fn resize_down(&mut self, evt: Event) -> &mut Self[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> With for T[src]

fn with<F>(self, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure on self.

fn try_with<E, F>(self, f: F) -> Result<Self, E> where
    F: FnOnce(&mut Self) -> Result<(), E>, 
[src]

Calls the given closure on self.

fn with_if<F>(self, condition: bool, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure if condition == true.

impl<T> Erased for T