pub struct ToggleBuilder { /* private fields */ }Expand description
A builder-pattern type to construct Toggle objects.
Implementations§
Source§impl ToggleBuilder
impl ToggleBuilder
pub fn child(self, child: &impl IsA<Widget>) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn icon_name(self, icon_name: impl Into<GString>) -> Self
pub fn label(self, label: impl Into<GString>) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
pub fn tooltip(self, tooltip: impl Into<GString>) -> Self
pub fn use_underline(self, use_underline: bool) -> Self
Auto Trait Implementations§
impl Freeze for ToggleBuilder
impl RefUnwindSafe for ToggleBuilder
impl !Send for ToggleBuilder
impl !Sync for ToggleBuilder
impl Unpin for ToggleBuilder
impl UnwindSafe for ToggleBuilder
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