Remove window methods from AsyncAppContext
This commit is contained in:
parent
1fd80ba8bd
commit
4f10f0ee86
1 changed files with 0 additions and 16 deletions
|
@ -344,22 +344,6 @@ impl AsyncAppContext {
|
||||||
self.0.borrow().windows().collect()
|
self.0.borrow().windows().collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_window<T, F: FnOnce(&WindowContext) -> T>(
|
|
||||||
&self,
|
|
||||||
window: AnyWindowHandle,
|
|
||||||
callback: F,
|
|
||||||
) -> Option<T> {
|
|
||||||
self.0.borrow_mut().read_window(window, callback)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn update_window<T, F: FnOnce(&mut WindowContext) -> T>(
|
|
||||||
&mut self,
|
|
||||||
window: AnyWindowHandle,
|
|
||||||
callback: F,
|
|
||||||
) -> Option<T> {
|
|
||||||
self.0.borrow_mut().update_window(window, callback)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn debug_elements(&self, window: AnyWindowHandle) -> Option<json::Value> {
|
pub fn debug_elements(&self, window: AnyWindowHandle) -> Option<json::Value> {
|
||||||
self.0.borrow().read_window(window, |cx| {
|
self.0.borrow().read_window(window, |cx| {
|
||||||
let root_view = cx.window.root_view();
|
let root_view = cx.window.root_view();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue