cleanup
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 9m39s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 9m39s
This commit is contained in:
parent
2c169548b9
commit
bc42892d39
5 changed files with 12 additions and 32 deletions
|
@ -180,6 +180,7 @@ impl ApplicationContext {
|
|||
f(&renderer)
|
||||
}
|
||||
|
||||
/// Méthode utilitaire pour accéder au renderer de manière thread-safe
|
||||
pub fn with_renderer_mut<T, F>(&mut self, f: F) -> T
|
||||
where
|
||||
F: FnOnce(&mut VulkanoWindowRenderer) -> T,
|
||||
|
@ -194,6 +195,7 @@ impl ApplicationContext {
|
|||
f(renderer)
|
||||
}
|
||||
|
||||
/// Méthode utilitaire pour accéder au gui de manière thread-safe
|
||||
pub fn with_gui<T, F>(&self, f: F) -> T
|
||||
where
|
||||
F: FnOnce(&Gui) -> T,
|
||||
|
@ -202,6 +204,7 @@ impl ApplicationContext {
|
|||
f(&gui)
|
||||
}
|
||||
|
||||
/// Méthode utilitaire pour accéder au gui de manière thread-safe
|
||||
pub fn with_gui_mut<T, F>(&mut self, f: F) -> T
|
||||
where
|
||||
F: FnOnce(&mut Gui) -> T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue