electron_sys/class/
touch_bar.rs

1use crate::interface::TouchBarOptions;
2use js_sys::Object;
3use wasm_bindgen::prelude::*;
4
5#[wasm_bindgen(module = "electron")]
6extern {
7    #[wasm_bindgen(extends = Object)]
8    #[derive(Clone, Debug, Eq, PartialEq)]
9    /// Docs: http://electronjs.org/docs/api/touch-bar
10    pub type TouchBar;
11
12    //*************//
13    // Constructor //
14    //*************//
15
16    #[wasm_bindgen(constructor)]
17    pub fn new(options: TouchBarOptions) -> TouchBar;
18
19    //*********************//
20    // Instance Properties //
21    //*********************//
22
23    #[wasm_bindgen(method, getter, js_name = "escapeItem")]
24    pub fn escape_item(this: &TouchBar) -> Option<Object>;
25
26    #[wasm_bindgen(method, setter, js_name = "escapeItem")]
27    pub fn set_escape_item(this: &TouchBar, value: Option<Object>);
28}