pub struct IconButton<'a> { /* private fields */ }Expand description
An icon button that displays an image/SVG.
Implementations§
Source§impl<'a> IconButton<'a>
impl<'a> IconButton<'a>
Sourcepub fn new(icon: ImageSource<'a>, tooltip: &'a str) -> Self
pub fn new(icon: ImageSource<'a>, tooltip: &'a str) -> Self
Create a new icon button.
Sourcepub fn style(self, style: IconButtonStyle) -> Self
pub fn style(self, style: IconButtonStyle) -> Self
Set the button style.
Auto Trait Implementations§
impl<'a> Freeze for IconButton<'a>
impl<'a> RefUnwindSafe for IconButton<'a>
impl<'a> Send for IconButton<'a>
impl<'a> Sync for IconButton<'a>
impl<'a> Unpin for IconButton<'a>
impl<'a> UnwindSafe for IconButton<'a>
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