Handle tab drag end on pane items to insert after active item

Co-Authored-By: Kay Simmons <kay@zed.dev>
This commit is contained in:
Julia
2022-10-24 23:30:35 -07:00
committed by K Simmons
co-authored by Kay Simmons
parent c295f943ba
commit b9f9819637
5 changed files with 66 additions and 24 deletions
+10
View File
@@ -707,6 +707,16 @@ impl<'a> PaintContext<'a> {
}
}
#[inline]
pub fn paint_stacking_context<F>(&mut self, clip_bounds: Option<RectF>, f: F)
where
F: FnOnce(&mut Self),
{
self.scene.push_stacking_context(clip_bounds);
f(self);
self.scene.pop_stacking_context();
}
#[inline]
pub fn paint_layer<F>(&mut self, clip_bounds: Option<RectF>, f: F)
where