overlap-notify: Initial implementation
This commit is contained in:
parent
9c7c41c508
commit
bd04d68106
5 changed files with 405 additions and 0 deletions
|
|
@ -76,6 +76,10 @@ impl ToplevelStateInner {
|
|||
..Default::default()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn foreign_handle(&self) -> Option<&ForeignToplevelHandle> {
|
||||
self.foreign_handle.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ToplevelHandleStateInner<W: Window> {
|
||||
|
|
@ -394,6 +398,10 @@ where
|
|||
pub fn global_id(&self) -> GlobalId {
|
||||
self.global.clone()
|
||||
}
|
||||
|
||||
pub fn registered_toplevels(&self) -> impl Iterator<Item = &W> {
|
||||
self.toplevels.iter()
|
||||
}
|
||||
}
|
||||
|
||||
fn send_toplevel_to_client<D, W: 'static>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue