[−][src]Struct dialog::backends::KDialog
The kdialog
backend.
This backend uses the external kdialog
program to display KDE dialog boxes.
Methods
impl KDialog
[src]
pub fn new() -> KDialog
[src]
Creates a new KDialog
instance without configuration.
pub fn set_icon(&mut self, icon: impl Into<String>)
[src]
Sets the icon in the dialog box's titlebar and taskbar button.
The icon can be either a name from the user's configured icon theme, such as error
or
info
or the path to an image to use.
The default image depends on the dialog type.
Trait Implementations
impl Backend for KDialog
[src]
fn show_input(&self, input: &Input) -> Result<Option<String>>
[src]
fn show_message(&self, message: &Message) -> Result<()>
[src]
fn show_password(&self, password: &Password) -> Result<Option<String>>
[src]
fn show_question(&self, question: &Question) -> Result<Choice>
[src]
fn show_file_selection(
&self,
file_selection: &FileSelection
) -> Result<Option<String>>
[src]
&self,
file_selection: &FileSelection
) -> Result<Option<String>>
impl AsRef<KDialog> for KDialog
[src]
impl Default for KDialog
[src]
impl Debug for KDialog
[src]
Auto Trait Implementations
impl Send for KDialog
impl Sync for KDialog
impl Unpin for KDialog
impl UnwindSafe for KDialog
impl RefUnwindSafe for KDialog
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 = !
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,