pub struct ListDropIntoRecipe {
pub role: BorderRole,
pub fill_alpha: f32,
pub corner_radius: f32,
pub inset: f32,
pub thickness: f32,
}Expand description
Recipe — non-widget data describing the inline paint of the
“drop into this container” highlight, the reparent counterpart of
ListInsertionRecipe. Resolved against the active theme each frame by
TreeView::paint / TreeTableView::paint.
Fields§
§role: BorderRoleBorder role for the box’s outline and (at fill_alpha) its wash.
Defaults to Accent.
fill_alpha: f32Alpha applied to role’s colour for the interior wash. High enough
to read on a light surface, low enough to leave the row’s own label
legible.
corner_radius: f32Corner radius of the box, in logical pixels.
inset: f32How far the box is pulled in from the target row’s bounds, in
logical pixels. Load-bearing — see the module docs: at 0.0 the
box’s horizontal edges land exactly on the pixels a Before /
After line would occupy, and the two affordances stop being
distinguishable.
thickness: f32Outline thickness, in logical pixels. Defaults to the insertion line’s
own weight, so the two drop affordances read as one family — and so
neither is mistaken for StandardItem’s thinner selection edge.
Trait Implementations§
Source§impl Clone for ListDropIntoRecipe
impl Clone for ListDropIntoRecipe
Source§fn clone(&self) -> ListDropIntoRecipe
fn clone(&self) -> ListDropIntoRecipe
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more