1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_lose_context , typescript_type = "WEBGL_lose_context")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `WebglLoseContext` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] 13 pub type WebglLoseContext; 14 # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = loseContext)] 15 #[doc = "The `loseContext()` method."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] lose_context(this: &WebglLoseContext)20 pub fn lose_context(this: &WebglLoseContext); 21 # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = restoreContext)] 22 #[doc = "The `restoreContext()` method."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] restore_context(this: &WebglLoseContext)27 pub fn restore_context(this: &WebglLoseContext); 28 } 29