1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

rename LayerId to AreaLayerId

This commit is contained in:
charburgx
2022-12-17 12:20:18 -06:00
parent 6ae4bc486b
commit 1e770ae3bd
14 changed files with 77 additions and 64 deletions

View File

@@ -15,7 +15,7 @@ pub fn drag_source(ui: &mut Ui, id: Id, body: impl FnOnce(&mut Ui)) {
ui.output().cursor_icon = CursorIcon::Grabbing;
// Paint the body to a new layer:
let layer_id = LayerId::new(Order::Tooltip, id);
let layer_id = AreaLayerId::new(Order::Tooltip, id);
let response = ui.with_layer_id(layer_id, body).response;
// Now we move the visuals of the body to where the mouse is.