Struct dialog::backends::Zenity

source ·
pub struct Zenity { /* private fields */ }
Expand description

The zenity backend.

This backend uses the external zenity program to display GTK+ dialog boxes.

Implementations

Creates a new Zenity instance without configuration.

Sets the icon of the dialog box.

The icon can either be one of error, info, question or `warning, or the path to an image to use. The default image depends on the dialog type.

Sets the height of the dialog boxes.

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

Sets the width of the dialog boxes.

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

Sets the timout of the dialog boxes (in seconds).

After the timeout, the dialog box is closed. The timeout is handled like a cancel event. Per default, there is no timeout.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Shows the given input dialog and returns the input.
Shows the given message dialog.
Shows the given password dialog and returns the password.
Shows the given question dialog and returns the choice.
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.