[−][src]Struct cursive_multiplex::MuxBuilder
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]
T: View,
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
impl Sync for MuxBuilder
impl Send for MuxBuilder
impl Unpin for MuxBuilder
impl RefUnwindSafe for MuxBuilder
impl UnwindSafe for MuxBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> With for T
[src]
fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
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]
F: FnOnce(&mut Self) -> Result<(), E>,
Calls the given closure on self
.
fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure if condition == true
.