electron-sys 0.4.0

Raw bindings to the Electron API for projects using wasm-bindgen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern {
    #[derive(Clone, Debug, PartialEq)]
    pub type AnimationSettings;

    #[wasm_bindgen(method, getter, js_name = "shouldRenderRichAnimation")]
    pub fn should_render_rich_animation(this: &AnimationSettings) -> bool;

    #[wasm_bindgen(method, getter, js_name = "scrollAnimationsEnabledBySystem")]
    pub fn scroll_animations_enabled_by_system(this: &AnimationSettings) -> bool;

    #[wasm_bindgen(method, getter, js_name = "prefersReducedMotion")]
    pub fn prefers_reduced_motion(this: &AnimationSettings) -> bool;
}