pub struct Info {
pub text: Option<String>,
pub ok_label: Option<String>,
pub no_wrap: bool,
pub no_markup: bool,
pub ellipsize: bool,
}
Expand description
Configuration for an informational dialog.
Fields§
§text: Option<String>
The body text
ok_label: Option<String>
Custom label for ok button
no_wrap: bool
Prevent word wrap
no_markup: bool
Disable markup support
ellipsize: bool
Show ellipses for texts that are too long to display
Implementations§
Source§impl Info
impl Info
Sourcepub fn with_ok_label(self, ok_label: impl Into<String>) -> Self
pub fn with_ok_label(self, ok_label: impl Into<String>) -> Self
Replace the default ok button label.
Sourcepub fn set_no_wrap(self) -> Self
pub fn set_no_wrap(self) -> Self
Prevent text from wrapping.
Sourcepub fn set_no_markup(self) -> Self
pub fn set_no_markup(self) -> Self
Disable markup support.
Sourcepub fn set_ellipsize(self) -> Self
pub fn set_ellipsize(self) -> Self
If text is too long to fit, display an ellipses.
Trait Implementations§
Source§impl ZenityApplication for Info
impl ZenityApplication for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more