pub struct DefaultDelegate {
pub normal_style: Style,
pub selected_style: Style,
pub item_height: usize,
pub item_spacing: usize,
}Expand description
Default delegate for simple item rendering.
Fields§
§normal_style: StyleStyle for normal items.
selected_style: StyleStyle for selected items.
item_height: usizeHeight of each item.
item_spacing: usizeSpacing between items.
Implementations§
Source§impl DefaultDelegate
impl DefaultDelegate
Sourcepub fn with_height(self, h: usize) -> Self
pub fn with_height(self, h: usize) -> Self
Sets the item height.
Sourcepub fn with_spacing(self, s: usize) -> Self
pub fn with_spacing(self, s: usize) -> Self
Sets the item spacing.
Trait Implementations§
Source§impl Clone for DefaultDelegate
impl Clone for DefaultDelegate
Source§fn clone(&self) -> DefaultDelegate
fn clone(&self) -> DefaultDelegate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultDelegate
impl Debug for DefaultDelegate
Source§impl Default for DefaultDelegate
impl Default for DefaultDelegate
Auto Trait Implementations§
impl Freeze for DefaultDelegate
impl !RefUnwindSafe for DefaultDelegate
impl Send for DefaultDelegate
impl Sync for DefaultDelegate
impl Unpin for DefaultDelegate
impl !UnwindSafe for DefaultDelegate
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