pub struct SidebarItemBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SidebarItem objects.
Implementations§
Source§impl SidebarItemBuilder
impl SidebarItemBuilder
pub fn drag_motion_activate(self, drag_motion_activate: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn icon_name(self, icon_name: impl Into<GString>) -> Self
pub fn icon_paintable(self, icon_paintable: &impl IsA<Paintable>) -> Self
pub fn subtitle(self, subtitle: impl Into<GString>) -> Self
pub fn suffix(self, suffix: &impl IsA<Widget>) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
pub fn tooltip(self, tooltip: impl Into<GString>) -> Self
pub fn use_underline(self, use_underline: bool) -> Self
pub fn visible(self, visible: bool) -> Self
Sourcepub fn build(self) -> SidebarItem
pub fn build(self) -> SidebarItem
Build the SidebarItem.
Auto Trait Implementations§
impl Freeze for SidebarItemBuilder
impl RefUnwindSafe for SidebarItemBuilder
impl !Send for SidebarItemBuilder
impl !Sync for SidebarItemBuilder
impl Unpin for SidebarItemBuilder
impl UnwindSafe for SidebarItemBuilder
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