pub struct ListInsertionRecipe {
pub role: BorderRole,
pub thickness: f32,
pub indent_step: f32,
}Expand description
Recipe — non-widget data describing the inline paint of the
insertion line. ListView::paint / TreeView::paint resolve the
role against the active theme each frame.
Fields§
§role: BorderRoleBorder role for the insertion line. Defaults to Accent.
thickness: f32Stroke thickness of the line, in logical pixels.
indent_step: f32Horizontal offset applied per tree level, so the line starts where
the dropped row’s own indent will start — the Finder / Scrivener
convention that tells “after this scene, still inside the chapter”
from “after the chapter”. Matches StandardTreeItem’s indent step;
0.0 disables the indent. Read by TreeView only — ListView’s rows
have no depth, and TreeTableView uses its own indent_per_level,
the value its indent gutter actually renders with.
Trait Implementations§
Source§impl Clone for ListInsertionRecipe
impl Clone for ListInsertionRecipe
Source§fn clone(&self) -> ListInsertionRecipe
fn clone(&self) -> ListInsertionRecipe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ListInsertionRecipe
Source§impl Debug for ListInsertionRecipe
impl Debug for ListInsertionRecipe
Source§impl Default for ListInsertionRecipe
impl Default for ListInsertionRecipe
Source§impl PartialEq for ListInsertionRecipe
impl PartialEq for ListInsertionRecipe
impl StructuralPartialEq for ListInsertionRecipe
Auto Trait Implementations§
impl Freeze for ListInsertionRecipe
impl RefUnwindSafe for ListInsertionRecipe
impl Send for ListInsertionRecipe
impl Sync for ListInsertionRecipe
impl Unpin for ListInsertionRecipe
impl UnsafeUnpin for ListInsertionRecipe
impl UnwindSafe for ListInsertionRecipe
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