[][src]Struct dialog::backends::Dialog

pub struct Dialog { /* fields omitted */ }

The dialog backend.

This backend uses the external dialog program (not to be confused with this crate also called dialog) to display text-based dialog boxes in the terminal.

Methods

impl Dialog[src]

pub fn new() -> Dialog[src]

Creates a new Dialog instance without configuration.

pub fn set_backtitle(&mut self, backtitle: impl Into<String>)[src]

Sets the backtitle for the dialog boxes.

The backtitle is displayed on the backdrop, at the top of the screen.

pub fn set_height(&mut self, height: u32)[src]

Sets the height of the dialog boxes.

The height is given in characters. The actual height of the dialog box might be higher than the given height if the content would not fit otherwise. The default height is zero.

pub fn set_width(&mut self, width: u32)[src]

Sets the width of the dialog boxes.

The width is given in characters. The actual width of the dialog box might be higher than the given width if the content would not fit otherwise. The default width is zero.

Trait Implementations

impl Backend for Dialog[src]

impl AsRef<Dialog> for Dialog[src]

impl Default for Dialog[src]

impl Debug for Dialog[src]

Auto Trait Implementations

impl Send for Dialog

impl Sync for Dialog

impl Unpin for Dialog

impl UnwindSafe for Dialog

impl RefUnwindSafe for Dialog

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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