1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceOrientationEvent , typescript_type = "DeviceOrientationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceOrientationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub type DeviceOrientationEvent; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = alpha)] #[doc = "Getter for the `alpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/alpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn alpha(this: &DeviceOrientationEvent) -> Option<f64>; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = beta)] #[doc = "Getter for the `beta` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/beta)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn beta(this: &DeviceOrientationEvent) -> Option<f64>; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = gamma)] #[doc = "Getter for the `gamma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/gamma)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn gamma(this: &DeviceOrientationEvent) -> Option<f64>; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = absolute)] #[doc = "Getter for the `absolute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/absolute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn absolute(this: &DeviceOrientationEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "DeviceOrientationEvent")] #[doc = "The `new DeviceOrientationEvent(..)` constructor, creating a new instance of `DeviceOrientationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn new(type_: &str) -> Result<DeviceOrientationEvent, JsValue>; #[cfg(feature = "DeviceOrientationEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DeviceOrientationEvent")] #[doc = "The `new DeviceOrientationEvent(..)` constructor, creating a new instance of `DeviceOrientationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`, `DeviceOrientationEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DeviceOrientationEventInit, ) -> Result<DeviceOrientationEvent, JsValue>; # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event(this: &DeviceOrientationEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option<f64>, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option<f64>, beta: Option<f64>, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option<f64>, beta: Option<f64>, gamma: Option<f64>, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma_and_absolute( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option<f64>, beta: Option<f64>, gamma: Option<f64>, absolute: bool, ); }