Function i_slint_core::with_platform
source · pub fn with_platform<R>(
factory: impl FnOnce() -> Box<dyn Platform + 'static>,
f: impl FnOnce(&dyn Platform) -> R
) -> RExpand description
Internal function to access the platform abstraction. The factory function is called if the platform abstraction is not yet initialized, and should be given by the platform_selector