mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
live preview: Implement drop marker mapping for elements
... so we know what to do when dropping near tghe border of elements that accept drops in a layout.
This commit is contained in:
parent
1bb0a8638c
commit
69b8e8d57c
4 changed files with 824 additions and 51 deletions
|
@ -75,6 +75,10 @@ impl ElementRcNode {
|
|||
(n.source_file.path().to_owned(), u32::from(n.text_range().start()))
|
||||
})
|
||||
}
|
||||
|
||||
pub fn as_element(&self) -> &ElementRc {
|
||||
&self.element
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create_workspace_edit(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue