electron_sys/class/
touch_bar_label.rs

1use crate::interface::TouchBarLabelOptions;
2use js_sys::JsString;
3use node_sys::events::EventEmitter;
4use wasm_bindgen::prelude::*;
5
6#[wasm_bindgen(module = "electron")]
7extern {
8    #[wasm_bindgen(extends = EventEmitter)]
9    #[derive(Clone, Debug)]
10    /// Docs: http://electronjs.org/docs/api/touch-bar-label
11    pub type TouchBarLabel;
12
13    //*************//
14    // Constructor //
15    //*************//
16
17    #[wasm_bindgen(constructor)]
18    pub fn new(this: TouchBarLabelOptions) -> TouchBarLabel;
19
20    //*********************//
21    // Instance Properties //
22    //*********************//
23
24    #[wasm_bindgen(method, getter, js_name = "accessibilityLabel")]
25    pub fn accessibility_label(this: &TouchBarLabel) -> JsString;
26
27    #[wasm_bindgen(method, setter, js_name = "accessibilityLabel")]
28    pub fn set_accessibility_label(this: &TouchBarLabel, value: JsString);
29
30    #[wasm_bindgen(method, getter)]
31    pub fn label(this: &TouchBarLabel) -> JsString;
32
33    #[wasm_bindgen(method, setter)]
34    pub fn set_label(this: &TouchBarLabel, value: JsString);
35
36    #[wasm_bindgen(method, getter, js_name = "textColor")]
37    pub fn text_color(this: &TouchBarLabel) -> JsString;
38
39    #[wasm_bindgen(method, getter, js_name = "textColor")]
40    pub fn set_text_color(this: &TouchBarLabel, value: JsString);
41}