pub struct Zenity { /* private fields */ }
Expand description
The zenity
backend.
This backend uses the external zenity
program to display GTK+ dialog boxes.
Implementations
sourceimpl Zenity
impl Zenity
sourcepub fn set_icon(&mut self, icon: impl Into<String>)
pub fn set_icon(&mut self, icon: impl Into<String>)
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.
sourcepub fn set_height(&mut self, height: u32)
pub fn set_height(&mut self, height: u32)
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.
sourcepub fn set_width(&mut self, width: u32)
pub fn set_width(&mut self, width: u32)
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.
sourcepub fn set_timeout(&mut self, timeout: u32)
pub fn set_timeout(&mut self, timeout: u32)
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.