Trait slint::RenderingNotifier
pub trait RenderingNotifier {
// Required method
fn notify(&mut self, state: RenderingState, graphics_api: &GraphicsAPI<'_>);
}
Expand description
Internal trait that’s used to map rendering state callbacks to either a Rust-API provided impl FnMut or a struct that invokes a C callback and implements Drop to release the closure on the C++ side.
Required Methods§
fn notify(&mut self, state: RenderingState, graphics_api: &GraphicsAPI<'_>)
fn notify(&mut self, state: RenderingState, graphics_api: &GraphicsAPI<'_>)
Called to notify that rendering has reached a certain state.