electron_sys/interface/
animation_settings.rs1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4extern {
5 #[derive(Clone, Debug, PartialEq)]
6 pub type AnimationSettings;
7
8 #[wasm_bindgen(method, getter, js_name = "shouldRenderRichAnimation")]
9 pub fn should_render_rich_animation(this: &AnimationSettings) -> bool;
10
11 #[wasm_bindgen(method, getter, js_name = "scrollAnimationsEnabledBySystem")]
12 pub fn scroll_animations_enabled_by_system(this: &AnimationSettings) -> bool;
13
14 #[wasm_bindgen(method, getter, js_name = "prefersReducedMotion")]
15 pub fn prefers_reduced_motion(this: &AnimationSettings) -> bool;
16}