pub fn set_scale_factor(scale_factor: f64)Expand description
Sets the positive finite density scale for the active UI session.
ยงExamples
use tessera_ui::{RuntimeSession, dp::{scale_factor, set_scale_factor}};
let session = RuntimeSession::new();
session.run(|| {
set_scale_factor(2.0);
assert_eq!(scale_factor(), 2.0);
});