feat: dnd destination for stack widget

This commit is contained in:
Hojjat 2026-04-10 09:55:37 -06:00 committed by Ashley Wulber
parent 37f7eab8a3
commit fc6b46342b

View file

@ -375,6 +375,28 @@ where
}
}
fn drag_destinations(
&self,
state: &Tree,
layout: Layout<'_>,
renderer: &Renderer,
dnd_rectangles: &mut crate::core::clipboard::DndDestinationRectangles,
) {
for ((e, c_layout), state) in self
.children
.iter()
.zip(layout.children())
.zip(state.children.iter())
{
e.as_widget().drag_destinations(
state,
c_layout.with_virtual_offset(layout.virtual_offset()),
renderer,
dnd_rectangles,
);
}
}
fn overlay<'b>(
&'b mut self,
tree: &'b mut Tree,